Changeset 601 for code/branches/FICN/src/network
- Timestamp:
- Dec 17, 2007, 10:31:38 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/Client.cc
r565 r601 181 181 ENetPacket *packet; 182 182 // stop if the packet queue is empty 183 while(! client_connection.queueEmpty()){183 while(!(client_connection.queueEmpty())){ 184 184 packet = client_connection.getPacket(); 185 185 elaborate(packet, 0); // ================= i guess we got to change this .... (client_ID is always same = server) -
code/branches/FICN/src/network/NetworkFrameListener.h
r463 r601 17 17 #include "Server.h" 18 18 #include "Client.h" 19 //#include <iostream> 19 20 // #include "orxonox/orxonox.cc" 20 21 network::Server *server_g; … … 35 36 private: 36 37 bool frameStarted(const Ogre::FrameEvent &evt){ 38 std::cout << "framelistener" << std::endl; 37 39 client_g->tick(evt.timeSinceLastFrame); 38 40 return FrameListener::frameStarted(evt); -
code/branches/FICN/src/network/Server.cc
r479 r601 86 86 bool Server::sendMSG(const char *msg){ 87 87 ENetPacket *packet = packet_gen.chatMessage(msg); 88 //std::cout <<"adding packets" << std::endl;88 std::cout <<"adding PPPPPackets" << std::endl; 89 89 connection->addPacketAll(packet); 90 90 //std::cout <<"added packets" << std::endl; 91 return connection->sendPackets(); 91 if (connection->sendPackets()){ 92 std::cout << "SSSSSucessfully" << std::endl; 93 return true; 94 } 95 return false; 92 96 } 93 97 -
code/branches/FICN/src/network/dummyclient3.cc
r536 r601 34 34 std::getline( std::cin, str ); 35 35 client.sendChat( str ); 36 std::cout << "sen dmessage" << std::endl;36 std::cout << "sent message" << std::endl; 37 37 } 38 38 … … 42 42 43 43 void listener(){ 44 44 45 45 const int PORT = 55556; 46 46 std::cout << "Enter address of the server xxx.xxx.xxx.xxx (enter for localhost)" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.