TwiceAsNice
2019-02-18
|
This class is an abstraction layer for socket usable for interacting with WuT devices. More...
#include <WutSocket.h>
Public Member Functions | |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const int port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const int port) |
virtual bool | connectWithTimeout (const std::string host, int port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const int port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const int port) |
virtual bool | connectWithTimeout (const std::string host, int port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
Private Member Functions | |
bool | nonBlockingConnectWithTimeout (unsigned timeoutInMicroSeconds) |
bool | setSocketTimeout (int optval, unsigned timeoutInMicroSeconds) |
bool | nonBlockingConnectWithTimeout (unsigned timeoutInMicroSeconds) |
bool | setSocketTimeout (int optval, unsigned timeoutInMicroSeconds) |
bool | nonBlockingConnectWithTimeout (unsigned timeoutInMicroSeconds) |
bool | setSocketTimeout (int optval, unsigned timeoutInMicroSeconds) |
bool | nonBlockingConnectWithTimeout (unsigned timeoutInMicroSeconds) |
bool | setSocketTimeout (int optval, unsigned timeoutInMicroSeconds) |
bool | nonBlockingConnectWithTimeout (unsigned timeoutInMicroSeconds) |
bool | setSocketTimeout (int optval, unsigned timeoutInMicroSeconds) |
Private Attributes | |
int | m_sock |
sockaddr_in | m_addr |
This class is an abstraction layer for socket usable for interacting with WuT devices.
Basda::WutSocket::WutSocket | ( | ) |
|
virtual |
Basda::WutSocket::WutSocket | ( | ) |
|
virtual |
Basda::WutSocket::WutSocket | ( | ) |
|
virtual |
Basda::WutSocket::WutSocket | ( | ) |
|
virtual |
Basda::WutSocket::WutSocket | ( | ) |
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Basda::WutSocket::listen | ( | ) | const |
bool Basda::WutSocket::listen | ( | ) | const |
bool Basda::WutSocket::listen | ( | ) | const |
bool Basda::WutSocket::listen | ( | ) | const |
bool Basda::WutSocket::listen | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
virtual |
Reimplemented in test::FakeWutSocket, and test::FakeWutSocket.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |