libglass::UDP Class Reference

#include <udp.h>

Inheritance diagram for libglass::UDP:

libglass::Protocol

List of all members.

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


Detailed Description

Definition at line 32 of file udp.h.


Constructor & Destructor Documentation

libglass::UDP::UDP (  ) 

libglass::UDP::~UDP (  ) 


Member Function Documentation

nodeFD libglass::UDP::_accept ( void   )  [protected, virtual]

This is the derived class implementation of accept().

See also:
nodeFD accept(void)

Implements libglass::Protocol.

nodeFD libglass::UDP::_connect ( const char *  host,
unsigned int  port 
) [protected, virtual]

This is the derived class implementation of connect().

See also:
nodeFD connect(const char *host, unsigned int port);

Implements libglass::Protocol.

void libglass::UDP::_disconnect ( nodeFD  node  )  [protected, virtual]

This is the derived class implementation of disconnect().

See also:
void disconnect(nodeFD node)

Implements libglass::Protocol.

int libglass::UDP::_listen ( unsigned int  port  )  [protected, virtual]

This is the derived class implementation of listen().

See also:
int listen(unsigned int port)

Implements libglass::Protocol.

int libglass::UDP::_recv ( Packet p  )  [protected, virtual]

This is the derived class implementation of recv().

See also:
int recv(Packet &p)

Implements libglass::Protocol.

bool libglass::UDP::_send ( Packet p  )  [protected, virtual]

This is the derived class implementation of send().

See also:
bool _send(Packet &p)

Implements libglass::Protocol.


Member Data Documentation

unsigned int libglass::UDP::comm_port [protected]

Definition at line 51 of file udp.h.

const unsigned int libglass::UDP::default_comm_port = 9193 [static, protected]

Definition at line 48 of file udp.h.

const unsigned int libglass::UDP::default_connect_port = 9192 [static, protected]

Default port.

Definition at line 47 of file udp.h.

PacketLog* libglass::UDP::plog [protected]

Definition at line 66 of file udp.h.

Internal data union (server/client).


The documentation for this class was generated from the following file:

Generated on Fri May 28 13:19:01 2010 for libGlass by  doxygen 1.5.8