Changeset 223 for code/branches/network/src/network/PacketDecoder.cc
- Timestamp:
- Nov 20, 2007, 8:33:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/PacketDecoder.cc
r203 r223 1 /* 2 * Class contains functions to determine and decode incomming packages 3 * 4 * Autor: Dumeni Manatschal 5 * 6 */ 7 8 1 9 #include "enet/enet.h" 2 10 #include "PacketManager.h" … … 8 16 PacketDecoder::PacketDecoder(){} 9 17 18 //call this function out of an instance of PacketDecoder 19 //it will determine the type id and call the right decode function 10 20 bool PacketDecoder::elaborate( ENetPacket* packet, int clientId ) 11 21 { … … 33 43 return false; 34 44 } 45 46 //following are the decode functions for the data of the packets 35 47 36 48 void PacketDecoder::acknowledgement( ENetPacket* packet ) … … 64 76 printChat( chatting ); 65 77 } 66 /* 67 void PacketDecoder::printPeer( ENetPeer* peer ) 68 { 69 cout << "number of chanels: " << peer->channelCount << endl; 70 cout << "incomming bandwidth: " << peer->incomingBandwidth << endl; 71 cout << "outgoing bandwidth: " << peer->outgoingBandwidth << endl; 72 cout << "peer id: " << peer->sessionID << endl; 73 cout << "outgoing peer id: " << peer->outgoingPeerID << endl; 74 cout << "incomming peer id: " << peer->incomingPeerID << endl; 75 cout << "state of peer: " << peer->state << endl; 76 } 77 */ 78 79 //these are some print functions for test stuff 80 78 81 void PacketDecoder::printAck( ack* data ) 79 82 {
Note: See TracChangeset
for help on using the changeset viewer.