VICI
0.11.815
Visual Chart Interpreter
|
A UDP Server socket. More...
#include <udpsocket.h>
Public Member Functions | |
UDPServerSocket (int portid) | |
Constructor. More... | |
void | send (csr message, csr host, int port) |
send message to specified host and port. Used for replies. More... | |
Public Member Functions inherited from VICI::cfi::UDPSocket | |
virtual | ~UDPSocket () |
destructor | |
int | fd () |
get the file descriptor for the socket | |
void | send (csr message) |
send a message via the socket's file descriptor More... | |
void | recv (std::string &message, std::string &host, int &port) |
wait for the next incoming message More... | |
Additional Inherited Members | |
Static Public Attributes inherited from VICI::cfi::UDPSocket | |
static const int | BUFFER_SIZE = 16000 |
Protected Member Functions inherited from VICI::cfi::UDPSocket | |
UDPSocket () | |
constructor | |
Protected Attributes inherited from VICI::cfi::UDPSocket | |
struct sockaddr_in | addr |
internal address structure | |
unsigned int | addr_len |
size of address structure | |
int | sd |
file descriptor | |
A UDP Server socket.
A UDP socket which accepts incoming packets.
UDPServerSocket::UDPServerSocket | ( | int | portid | ) |
Constructor.
portid | the port to listen on. |
send message to specified host and port. Used for replies.
message | the text to send. |
host | the machine to send to. |
port | the port to send to. |