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

CL_ConnectionProvider Class Reference

desc: This class contain all the platform dependent functions in the desc: transport layer.desc:
desc: This interface is used to create connections to other hosts and the desc: netsession layer. More...

#include <network_delivery_impl.h>

Inheritance diagram for CL_ConnectionProvider:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~CL_ConnectionProvider ()
virtual CL_UDPConnectioncreate_udp_connection (unsigned int port)=0
virtual CL_Connectionget_client ()=0
 param: port - UDP port to listen on (in host byte order).retval: The created udp connection.

virtual CL_Connectioncreate_tcp_connection (int ip_addr, int port)=0
 retval: Connection to the NetSession layer.

virtual CL_Connectionaccept ()=0
 param: ip_addr - The IP address in network byte order.param: port - Port number on that host (in host byte order).retval: Returns the connection to the host.

virtual void start_accept_on_port (int port)=0
 retval: The new connection that appeared.

virtual void stop_accept_on_port (int port)=0
 param: port - Port connections should be accepted on (in host byte order).

virtual void wait_for_connection_data (CL_Mutex *mutex)=0
 param: port - Port to stop accepts (in host byte order).

virtual void remove_connection (CL_Connection *removed_connection)=0

Detailed Description

desc: This class contain all the platform dependent functions in the desc: transport layer.desc:
desc: This interface is used to create connections to other hosts and the desc: netsession layer.

Definition at line 119 of file network_delivery_impl.h.


Constructor & Destructor Documentation

CL_ConnectionProvider::~CL_ConnectionProvider ( ) [inline, virtual]
 

Definition at line 128 of file network_delivery_impl.h.


Member Function Documentation

CL_Connection * CL_ConnectionProvider::accept ( ) [pure virtual]
 

param: ip_addr - The IP address in network byte order.param: port - Port number on that host (in host byte order).retval: Returns the connection to the host.

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

CL_Connection * CL_ConnectionProvider::create_tcp_connection ( int ip_addr,
int port ) [pure virtual]
 

retval: Connection to the NetSession layer.

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

virtual CL_UDPConnection* CL_ConnectionProvider::create_udp_connection ( unsigned int port ) [pure virtual]
 

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

CL_Connection * CL_ConnectionProvider::get_client ( ) [pure virtual]
 

param: port - UDP port to listen on (in host byte order).retval: The created udp connection.

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

virtual void CL_ConnectionProvider::remove_connection ( CL_Connection * removed_connection ) [pure virtual]
 

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

void CL_ConnectionProvider::start_accept_on_port ( int port ) [pure virtual]
 

retval: The new connection that appeared.

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

void CL_ConnectionProvider::stop_accept_on_port ( int port ) [pure virtual]
 

param: port - Port connections should be accepted on (in host byte order).

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.

void CL_ConnectionProvider::wait_for_connection_data ( CL_Mutex * mutex ) [pure virtual]
 

param: port - Port to stop accepts (in host byte order).

Reimplemented in CL_Connections_Unix, and CL_Connections_Win32.


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