#include <NetworkStream.hpp>
Public Member Functions | |
NetworkStream () | |
NetworkStream (socket_t s) | |
~NetworkStream () | |
std::string | peer () |
bool | connect (const std::string &name, unsigned int port) |
bool | connect (const char *name, unsigned int port) |
void | close () |
int | write (const void *buffer, size_t length) |
int | read (void *buffer, size_t length) |
int | blockingRead (void *buffer, size_t length) |
int | blockingWrite (const void *buffer, unsigned int length) |
bool | alive () |
Private Member Functions | |
sockaddr_in | _getSockaddr (const char *name, unsigned int port) |
Private Attributes | |
socket_t | _socket |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|