Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 2:57:43 PM (16 years ago)
Author:
scheusso
Message:

changed concept of threading, had to change packetbuffer (using events now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Client.cc

    r1377 r1409  
    120120    isConnected=client_connection.createConnection();
    121121    if(isConnected){
    122       COUT(3) << "sending connectrequest" << std::endl;
    123       if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets())
    124         COUT(1) << "could not send connection request !!!!!!!!!" << std::endl;
     122//       COUT(3) << "sending connectrequest" << std::endl;
     123//       if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets())
     124//         COUT(1) << "could not send connection request !!!!!!!!!" << std::endl;
    125125    }else
    126126      COUT(1) << "could not create connection laber" << std::endl;
     
    239239      }
    240240    }
    241     ENetPacket *packet;
     241    ENetEvent *event;
    242242    // stop if the packet queue is empty
    243243    while(!(client_connection.queueEmpty())){
    244       packet = client_connection.getPacket();
    245       COUT(5) << "tick packet size " << packet->dataLength << std::endl;
    246       elaborate(packet, 0); // ================= i guess we got to change this .... (client_ID is always same = server)
     244      event = client_connection.getEvent();
     245      COUT(5) << "tick packet size " << event->packet->dataLength << std::endl;
     246      elaborate(event->packet, 0); // ================= i guess we got to change this .... (client_ID is always same = server)
    247247    }
    248248    if(!client_connection.sendPackets())
Note: See TracChangeset for help on using the changeset viewer.