Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2007, 8:33:15 PM (16 years ago)
Author:
dumenim
Message:

dumenim added some comment to the code

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
    19#include "enet/enet.h"
    210#include "PacketManager.h"
     
    816PacketDecoder::PacketDecoder(){}
    917
     18//call this function out of an instance of PacketDecoder
     19//it will determine the type id and call the right decode function
    1020bool PacketDecoder::elaborate( ENetPacket* packet, int clientId )
    1121{
     
    3343        return false;
    3444}
     45
     46//following are the decode functions for the data of the packets
    3547
    3648void PacketDecoder::acknowledgement( ENetPacket* packet )
     
    6476        printChat( chatting );
    6577}
    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
    7881void PacketDecoder::printAck( ack* data )
    7982{
Note: See TracChangeset for help on using the changeset viewer.