Changeset 1409 for code/branches/network/src/network/ConnectionManager.h
- Timestamp:
- May 24, 2008, 2:57:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/ConnectionManager.h
r1379 r1409 77 77 ConnectionManager(int port, const char *address, ClientInformation *head); 78 78 ConnectionManager(int port, std::string address, ClientInformation *head); 79 ENetPacket *getPacket(ENetAddress &address); // thread1 80 ENetPacket *getPacket(int &clientID); 79 //ENetPacket *getPacket(ENetAddress &address); // thread1 80 //ENetPacket *getPacket(int &clientID); 81 ENetEvent *getEvent(); 81 82 bool queueEmpty(); 82 83 void createListener(); … … 87 88 // bool sendPackets(ENetEvent *event); 88 89 bool sendPackets(); 89 bool createClient(int clientID);90 //bool createClient(int clientID); 90 91 void disconnectClient(ClientInformation *client); 92 void syncClassid(int clientID); 93 bool sendWelcome(int clientID, int shipID, bool allowed); 91 94 92 95 private: 93 bool clientDisconnect(ENetPeer *peer);94 bool removeClient(int clientID);96 // bool clientDisconnect(ENetPeer *peer); 97 // bool removeClient(int clientID); 95 98 bool processData(ENetEvent *event); 96 bool addClient(ENetEvent *event);99 //bool addClient(ENetEvent *event); 97 100 void receiverThread(); 98 101 void disconnectClients(); 99 102 int getClientID(ENetPeer peer); 100 103 int getClientID(ENetAddress address); 101 void syncClassid(int clientID);102 104 ENetPeer *getClientPeer(int clientID); 103 bool createShip(ClientInformation *client);105 //bool createShip(ClientInformation *client); 104 106 bool removeShip(ClientInformation *client); 105 bool sendWelcome(int clientID, int shipID, bool allowed);106 107 bool addFakeConnectRequest(ENetEvent *ev); 107 108 PacketBuffer buffer;
Note: See TracChangeset
for help on using the changeset viewer.