Interface class encapsulating a connected socket. Preserves packets order and guaranty delivery.
More...
|
| ConnectedSocket (const Object *parent, const std::string name) |
| Constructor. More...
|
|
| ~ConnectedSocket () |
| Destructor. More...
|
|
virtual void | Listen (const unsigned int port, const std::string localAddress="ANY")=0 |
| Returns a socket which listens on a specific port/address. More...
|
|
virtual ConnectedSocket * | Accept (Time timeout)=0 |
| Returns a socket on a new incoming connexion. More...
|
|
virtual bool | Connect (const unsigned int port, const std::string distantAddress, Time timeout)=0 |
| Returns a socket connected to a distant host. More...
|
|
virtual ssize_t | SendMessage (const char *message, size_t message_len, Time timeout)=0 |
| Send a message waiting up to timeout ns. More...
|
|
virtual ssize_t | RecvMessage (char *buf, size_t buf_len, Time timeout)=0 |
| Receive a message. More...
|
|
std::string | ReadString (const size_t &stringLength, Time timeout) |
|
uint16_t | ReadUInt16 (Time const &timeout) |
|
void | WriteUInt16 (uint16_t const &data, Time const &timeout) |
|
uint32_t | ReadUInt32 (Time const &timeout) |
|
void | WriteUInt32 (uint32_t const &data, Time const &timeout) |
|
virtual uint16_t | NetworkToHost16 (uint16_t data)=0 |
| ! See Socket.h for a more generic implementation of network/host endianness More...
|
|
virtual uint16_t | HostToNetwork16 (uint16_t data)=0 |
|
virtual uint32_t | NetworkToHost32 (uint32_t data)=0 |
|
virtual uint32_t | HostToNetwork32 (uint32_t data)=0 |
|
| Object (const Object *parent=NULL, std::string name="", std::string type="") |
| Constructor. More...
|
|
virtual | ~Object () |
| Destructor. More...
|
|
std::string | ObjectName (void) const |
| Name. More...
|
|
std::string | ObjectType (void) const |
| Type. More...
|
|
const Object * | Parent (void) const |
| Parent. More...
|
|
std::vector< const Object * > * | TypeChilds (void) const |
| Childs of the same type. More...
|
|
std::vector< const Object * > * | Childs (void) const |
| Childs. More...
|
|
void | Information (const char *function, int line, const char *format,...) const |
| Formatted information. More...
|
|
void | Warning (const char *function, const char *format,...) const |
| Formatted warning. More...
|
|
void | Error (const char *function, const char *format,...) const |
| Formatted error. More...
|
|
bool | ErrorOccured (bool recursive=true) const |
| Has an errror occured? More...
|
|
Interface class encapsulating a connected socket. Preserves packets order and guaranty delivery.