#include <netsession_server.h>
Inheritance diagram for CL_NetSession_Server:


Public Methods | |
| CL_NetSession_Server (CL_ConnectionProvider *provider, const char *game_id, int port) | |
| virtual | ~CL_NetSession_Server () |
| virtual CL_NetComputer& | get_server () |
| virtual CL_NetGroup& | get_all () |
| virtual bool | peek (int channel) const |
| virtual int | access_status (int channel) const |
| virtual bool | is_writable (int channel) const |
| virtual bool | is_readable (int channel) const |
| virtual void | keep_alive () |
| virtual CL_NetMessage | receive (int channel, int timeout=-1) |
| void | send (const int dest_channel, const CL_NetComputer &dest, const CL_NetMessage &message, bool reliable=true) |
| virtual void | send (const int dest_channel, const CL_NetGroup &dest, const CL_NetMessage &message, bool reliable=true) |
| virtual CL_NetComputer | receive_computer_leave () |
| virtual CL_NetComputer | receive_computer_join () |
| virtual CL_NetComputer | receive_computer_rejoin () |
| virtual bool | receive_session_closed () |
| virtual int | receive_access_changed () |
| virtual void | set_access (int channel, const CL_NetComputer &computer, int access_rights=ACCESS_CHANNEL_READ|ACCESS_CHANNEL_WRITE) |
| virtual void | set_access (int channel, const CL_NetGroup &group, int access_rights=ACCESS_CHANNEL_READ|ACCESS_CHANNEL_WRITE) |
Private Methods | |
| CL_NetComputer_Host* | get_computer_host (const CL_NetComputer &comp) |
| CL_NetChannelQueue* | find_queue (int netchannel) const |
| CL_NetChannelQueue* | create_queue (int netchannel) |
| bool | has_read_access (CL_NetChannelQueue *channel, CL_NetComputer_Host *host) |
| void | check_trigger () |
| virtual void | run () |
Private Attributes | |
| CL_NetGroup | all |
| std::list<CL_NetComputer_Host*> | prejoin |
| std::list<CL_NetComputer_Host*> | computers |
| std::map<int ,CL_NetChannelQueue> | netchannels |
| CL_UDPConnection* | udp_connection |
| int | id_counter |
| std::string | game_id |
| int | port |
| std::queue<CL_NetComputer_Host*> | join_queue |
| std::queue<CL_NetComputer_Host*> | rejoin_queue |
| std::queue<CL_NetComputer_Host*> | leave_queue |
| CL_Mutex* | mutex |
| CL_Thread* | thread |
| volatile bool | exit_thread |
| friend | CL_NetComputer_Host |
|
|
|
|
|
|
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Definition at line 121 of file netsession_server.h. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
|
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
Reimplemented from CL_Runnable. |
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
|
|
|
Reimplemented from CL_NetSession_Generic. |
|
|
|
|
|
Definition at line 162 of file netsession_server.h. |
|
|
Definition at line 139 of file netsession_server.h. |
|
|
Definition at line 141 of file netsession_server.h. |
|
|
Definition at line 158 of file netsession_server.h. |
|
|
Definition at line 148 of file netsession_server.h. |
|
|
Definition at line 147 of file netsession_server.h. |
|
|
Definition at line 151 of file netsession_server.h. |
|
|
Definition at line 153 of file netsession_server.h. |
|
|
Definition at line 156 of file netsession_server.h. |
|
|
Definition at line 143 of file netsession_server.h. |
|
|
Definition at line 149 of file netsession_server.h. |
|
|
Definition at line 140 of file netsession_server.h. |
|
|
Definition at line 152 of file netsession_server.h. |
|
|
Definition at line 157 of file netsession_server.h. |
|
|
Definition at line 145 of file netsession_server.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001