Public Methods |
| | CL_NetSession (const std::string &app_id, int port) |
| | Construction:.
|
| | CL_NetSession (const std::string &app_id, const std::string &hostname, int port) |
| | CL_NetSession (const CL_ServerInfo &server) |
| virtual | ~CL_NetSession () |
| CL_EventTrigger* | get_trigger () |
| | Attributes:.
|
| CL_NetComputer& | get_server () |
| CL_NetGroup& | get_all () |
| bool | peek (int channel) const |
| int | access_status (int channel) const |
| bool | is_writable (int channel) const |
| bool | is_readable (int channel) const |
| CL_NetMessage | receive (int channel, int timeout=-1) |
| | Operations:.
|
| void | send (const int dest_channel, const CL_NetGroup &dest, const CL_NetMessage &message, bool reliable=true) |
| | param: channel - Channel to look for a message.param: timeout - Timeout, -1 means block forever.retval: The message received from the specified channel.
|
| CL_NetComputer | receive_computer_leave () |
| | param: dest - The group of computers to receive the message.param: dest_channel - Netchannel the message is sent to.param: message - Data in the message sent. All the data from 'message' is duplicated before this function returns.param: reliable - Arrival reliability. True guarantees arrival (use TCP/Pony express), false doesn't (use UDP/US Mail).
|
| CL_NetComputer | receive_computer_join () |
| CL_NetComputer | receive_computer_rejoin () |
| bool | receive_session_closed () |
| int | receive_access_changed () |
| void | set_access (int channel, const CL_NetGroup &group, int access_rights=ACCESS_CHANNEL_READ|ACCESS_CHANNEL_WRITE) |
| | CL_NetSession (class CL_NetSession_Generic *impl) |
| | Implementation:.
|
Public Attributes |
| class CL_NetSession_Generic* | impl |