Changeset 6106 in orxonox.OLD for branches/network/src
- Timestamp:
- Dec 14, 2005, 3:05:31 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/Makefile.am
r6066 r6106 13 13 server_socket.cc \ 14 14 handshake.cc \ 15 entity_manager.cc 15 entity_manager.cc \ 16 converter.cc 16 17 17 18 … … 27 28 server_socket.h \ 28 29 handshake.h \ 29 entity_manager.h 30 entity_manager.h \ 31 converter.h 30 32 31 33 -
branches/network/src/lib/network/entity_manager.h
r6067 r6106 10 10 #include "netdefs.h" 11 11 12 /* include base_object.h since all classes arederived from this one */12 /* include synchronizeable.h since this class is derived from this one */ 13 13 #include "synchronizeable.h" 14 14 -
branches/network/src/subprojects/network/network_unit_test.cc
r6043 r6106 11 11 #include "network_stream.h" 12 12 #include "synchronizeable.h" 13 #include "converter.h" 13 14 14 15 #include "simple_sync.h" … … 284 285 285 286 287 int converter(int argc, char** argv) 288 { 289 int x = -12; 290 printf("To convert: %i\n", x); 291 byte* res = Converter::intToByteArray(x); 292 for (int i = 0; i < 4; i++) 293 printf("%i ", res[i]); 294 printf("\n"); 295 296 int z = Converter::byteArrayToInt(res); 297 298 printf("ReConvert: %i\n", z); 299 300 301 return 0; 302 } 303 304 286 305 287 306 /** … … 308 327 else if (! strcmp( "--listen", argv[i]) || !strcmp("-l", argv[i])) 309 328 return startListen(argc, argv); 329 else if (! strcmp( "--converter", argv[i]) || !strcmp("-o", argv[i])) 330 return converter(argc, argv); 310 331 } 311 332
Note: See TracChangeset
for help on using the changeset viewer.