#include <udp.h>

Classes | |
| struct | client_struct |
| struct | server_struct |
| Internal data union (server/client). More... | |
Public Member Functions | |
| UDP () | |
| ~UDP () | |
Protected Member Functions | |
| int | _listen (unsigned int port) |
| nodeFD | _accept (void) |
| nodeFD | _connect (const char *host, unsigned int port) |
| void | _disconnect (nodeFD node) |
| bool | _send (Packet &p) |
| int | _recv (Packet &p) |
Protected Attributes | |
| unsigned int | comm_port |
| struct libglass::UDP::server_struct | server |
| Internal data union (server/client). | |
| struct libglass::UDP::client_struct | client |
| PacketLog * | plog |
Static Protected Attributes | |
| static const unsigned int | default_connect_port = 9192 |
| Default port. | |
| static const unsigned int | default_comm_port = 9193 |
Definition at line 32 of file udp.h.
| libglass::UDP::UDP | ( | ) |
| libglass::UDP::~UDP | ( | ) |
| nodeFD libglass::UDP::_accept | ( | void | ) | [protected, virtual] |
This is the derived class implementation of accept().
Implements libglass::Protocol.
| nodeFD libglass::UDP::_connect | ( | const char * | host, | |
| unsigned int | port | |||
| ) | [protected, virtual] |
This is the derived class implementation of connect().
Implements libglass::Protocol.
| void libglass::UDP::_disconnect | ( | nodeFD | node | ) | [protected, virtual] |
This is the derived class implementation of disconnect().
Implements libglass::Protocol.
| int libglass::UDP::_listen | ( | unsigned int | port | ) | [protected, virtual] |
This is the derived class implementation of listen().
Implements libglass::Protocol.
| int libglass::UDP::_recv | ( | Packet & | p | ) | [protected, virtual] |
This is the derived class implementation of recv().
Implements libglass::Protocol.
| bool libglass::UDP::_send | ( | Packet & | p | ) | [protected, virtual] |
This is the derived class implementation of send().
Implements libglass::Protocol.
struct libglass::UDP::client_struct libglass::UDP::client [protected] |
unsigned int libglass::UDP::comm_port [protected] |
const unsigned int libglass::UDP::default_comm_port = 9193 [static, protected] |
const unsigned int libglass::UDP::default_connect_port = 9192 [static, protected] |
PacketLog* libglass::UDP::plog [protected] |
struct libglass::UDP::server_struct libglass::UDP::server [protected] |
Internal data union (server/client).
1.5.8