Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_UniformUDPConnection Class Reference

#include <network_delivery_socket.h>

Inheritance diagram for CL_UniformUDPConnection:

Inheritance graph
[legend]
Collaboration diagram for CL_UniformUDPConnection:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual int get_socket ()
 CL_UniformUDPConnection ()
virtual ~CL_UniformUDPConnection ()
bool bind (unsigned int port)
virtual bool peek ()
virtual CL_UDPConnectionPacket receive ()
 retval: True if a message can received by a call to receive().

virtual void send (CL_UDPConnectionPacket message)
virtual void broadcast (CL_UDPConnectionPacket message)
 param: message - Message/data to be sent.

virtual unsigned int get_port ()
 param: message - Message/data to be sent.


Protected Attributes

int sock
int port

Constructor & Destructor Documentation

CL_UniformUDPConnection::CL_UniformUDPConnection ( )
 

virtual CL_UniformUDPConnection::~CL_UniformUDPConnection ( ) [virtual]
 


Member Function Documentation

bool CL_UniformUDPConnection::bind ( unsigned int port )
 

virtual void CL_UniformUDPConnection::broadcast ( CL_UDPConnectionPacket message ) [virtual]
 

param: message - Message/data to be sent.

Reimplemented from CL_UDPConnection.

virtual unsigned int CL_UniformUDPConnection::get_port ( ) [virtual]
 

param: message - Message/data to be sent.

Reimplemented from CL_UDPConnection.

int CL_UniformUDPConnection::get_socket ( ) [inline, virtual]
 

Definition at line 143 of file network_delivery_socket.h.

virtual bool CL_UniformUDPConnection::peek ( ) [virtual]
 

Reimplemented from CL_UDPConnection.

virtual CL_UDPConnectionPacket CL_UniformUDPConnection::receive ( ) [virtual]
 

retval: True if a message can received by a call to receive().

Reimplemented from CL_UDPConnection.

virtual void CL_UniformUDPConnection::send ( CL_UDPConnectionPacket message ) [virtual]
 

Reimplemented from CL_UDPConnection.


Member Data Documentation

int CL_UniformUDPConnection::port [protected]
 

Definition at line 159 of file network_delivery_socket.h.

int CL_UniformUDPConnection::sock [protected]
 

Definition at line 158 of file network_delivery_socket.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:36 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001