|
| ReceiverSocket (std::string IPAddress, unsigned int port=0) |
|
int | receive (std::string &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
|
int | receive (std::vector< uint32_t > &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
|
int | receive (std::string &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
|
int | receive (std::vector< uint32_t > &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false) |
|
std::string | getLastIncomingIPAddress (void) |
|
unsigned short | getLastIncomingPort (void) |
|
| Socket (const std::string &IPAddress, unsigned int port=0) |
|
virtual void | initialize (unsigned int socketReceiveBufferSize=defaultSocketReceiveSize_) |
|
const struct sockaddr_in & | getSocketAddress (void) |
|
const std::string & | getIPAddress () |
|
uint16_t | getPort () |
|
|
enum | { maxSocketSize_ = 65536
, defaultSocketReceiveSize_ = 0x10000
} |
|
enum | { FirstSocketPort = 10000
, LastSocketPort = 15000
} |
|
struct sockaddr_in | socketAddress_ |
|
int | socketNumber_ |
|
std::string | IPAddress_ |
|
unsigned int | requestedPort_ |
|
Definition at line 12 of file ReceiverSocket.h.
◆ receive() [1/2]
int ReceiverSocket::receive |
( |
std::string & |
buffer, |
|
|
unsigned long & |
fromIPAddress, |
|
|
unsigned short & |
fromPort, |
|
|
unsigned int |
timeoutSeconds = 1 , |
|
|
unsigned int |
timeoutUSeconds = 0 , |
|
|
bool |
verbose = false |
|
) |
| |
receive ~~ returns 0 on success, -1 on failure NOTE: must call Socket::initialize before receiving!
Definition at line 73 of file ReceiverSocket.cc.
◆ receive() [2/2]
int ReceiverSocket::receive |
( |
std::vector< uint32_t > & |
buffer, |
|
|
unsigned long & |
fromIPAddress, |
|
|
unsigned short & |
fromPort, |
|
|
unsigned int |
timeoutSeconds = 1 , |
|
|
unsigned int |
timeoutUSeconds = 0 , |
|
|
bool |
verbose = false |
|
) |
| |
receive ~~ returns 0 on success, -1 on failure NOTE: must call Socket::initialize before receiving!
Definition at line 199 of file ReceiverSocket.cc.
◆ TransceiverSocket
The documentation for this class was generated from the following files: