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

CL_Network Class Reference

#include <network.h>

List of all members.

Static Public Methods

void find_sessions_broadcast (std::string game_id, int port)
void find_session_at (std::string app_id, const char *host_address, int port)
 param: game_id - The game's ID used to locate this type of game with.param: port - Broadcast UDP port.

bool peek_session_found ()
 param: host_address - IP address or hostname of the computer to be contacted.param: port - Port which the computer contacted listens on.

CL_NetSessionreceive_session_found (int timeout_millis)
 retval: True if any netsessions have been found.

void clear_sessions_found ()
 param: timeout_millis - Timeout before returning if no game was found.retval: The netsession found, or NULL if timed out. Remember to delete theretval: netsession after usage.

CL_NetSessioncreate_session (std::string app_id, int port)


Member Function Documentation

void CL_Network::clear_sessions_found ( ) [static]
 

param: timeout_millis - Timeout before returning if no game was found.retval: The netsession found, or NULL if timed out. Remember to delete theretval: netsession after usage.

CL_NetSession* CL_Network::create_session ( std::string app_id,
int port ) [static]
 

void CL_Network::find_session_at ( std::string app_id,
const char * host_address,
int port ) [static]
 

param: game_id - The game's ID used to locate this type of game with.param: port - Broadcast UDP port.

void CL_Network::find_sessions_broadcast ( std::string game_id,
int port ) [static]
 

bool CL_Network::peek_session_found ( ) [static]
 

param: host_address - IP address or hostname of the computer to be contacted.param: port - Port which the computer contacted listens on.

CL_NetSession* CL_Network::receive_session_found ( int timeout_millis ) [static]
 

retval: True if any netsessions have been found.


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