Changeset 6043 in orxonox.OLD for branches/network/src/subprojects
- Timestamp:
- Dec 11, 2005, 2:07:08 PM (19 years ago)
- Location:
- branches/network/src/subprojects/network
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/network_unit_test.cc
r6026 r6043 190 190 Synchronizeable* ss = new SimpleSync("Server\0"); 191 191 192 netMan->createServer( *ss,port);192 netMan->createServer(/**ss, */port); 193 193 SDL_Delay(20); 194 194 … … 229 229 Synchronizeable* ss = new SimpleSync("Client\0"); 230 230 231 netMan->establishConnection( ip, *ss);231 netMan->establishConnection((const char*)"localhost", port/*,ip, *ss*/); 232 232 233 233 for(;;) -
branches/network/src/subprojects/network/read_sync.cc
r5996 r6043 80 80 * read data from Synchronizeable 81 81 */ 82 int ReadSync::readBytes(byte* data )82 int ReadSync::readBytes(byte* data, int maxLength, int& reciever) 83 83 { 84 84 return 0; -
branches/network/src/subprojects/network/read_sync.h
r5996 r6043 17 17 18 18 virtual void writeBytes(const byte* data, int length); 19 virtual int readBytes(byte* data );19 virtual int readBytes(byte* data, int maxLength, int& reciever); 20 20 21 21 -
branches/network/src/subprojects/network/simple_sync.cc
r5996 r6043 86 86 * read data from Synchronizeable 87 87 */ 88 int SimpleSync::readBytes(byte* data )88 int SimpleSync::readBytes(byte* data, int maxLength, int& reciever) 89 89 { 90 90 PRINTF(0)("SimpleSync: sent %i bytes of data\n", this->outLength); -
branches/network/src/subprojects/network/simple_sync.h
r5996 r6043 17 17 18 18 virtual void writeBytes(const byte* data, int length); 19 virtual int readBytes(byte* data );19 virtual int readBytes(byte* data, int maxLength, int& reciever); 20 20 21 21 -
branches/network/src/subprojects/network/write_sync.cc
r5996 r6043 86 86 * read data from Synchronizeable 87 87 */ 88 int WriteSync::readBytes(byte* data )88 int WriteSync::readBytes(byte* data, int maxLength, int& reciever) 89 89 { 90 90 PRINTF(0)("WriteSync: sent %i bytes of data\n", this->outLength); -
branches/network/src/subprojects/network/write_sync.h
r5996 r6043 17 17 18 18 virtual void writeBytes(const byte* data, int length); 19 virtual int readBytes(byte* data );19 virtual int readBytes(byte* data, int maxLength, int& reciever); 20 20 21 21
Note: See TracChangeset
for help on using the changeset viewer.