Changeset 217 for code/branches/network/src
- Timestamp:
- Nov 16, 2007, 11:31:17 PM (17 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Makefile
r210 r217 14 14 ConnectionManager.o: ConnectionManager.cc ConnectionManager.h 15 15 ${CC} -c ConnectionManager.cc -o ConnectionManager.o -g ${INC} 16 ClientConnection.o: ClientConnection.cc ClientConnection.h 17 ${CC} -c ClientConnection.cc -o ClientConnection.o -g ${INC} 16 18 17 19 PacketBuffer.o: PacketBuffer.cc … … 26 28 rm -rf *.o 27 29 28 client : PacketGenerator.o dummyclient.cc30 client_old: PacketGenerator.o dummyclient.cc 29 31 ${CC} dummyclient.cc PacketGenerator.o -o client -lenet -g ${INC} 32 client: PacketGenerator.o ClientConnection.o PacketBuffer.o dummyclient2.cc 33 ${CC} dummyclient2.cc PacketGenerator.o PacketBuffer.o ClientConnection.o -o client -lenet -lboost_thread -g ${INC} -
code/branches/network/src/network/dummyclient.cc
r213 r217 52 52 cout << "Connection to " << str << " failed." << endl; 53 53 //puts("Connection to localhost:5555 failed."); 54 exit(EXIT_FAILURE); 54 55 } 55 56 … … 59 60 // extend the packet and append the string foo to it 60 61 // send packet to peer on channel id 0 61 enet_peer_send(peer, 1, pck.chatMessage("test "));62 enet_peer_send(peer, 1, pck.chatMessage("test2")); 62 63 // keep the timeout very small for low delay 63 64 if(enet_host_service(client, &event, 1)==0){ … … 66 67 cout << "failed sending" << endl; 67 68 } 69 usleep(1000000); 68 70 } 69 71
Note: See TracChangeset
for help on using the changeset viewer.