Changeset 1150 for code/branches/network2/src/network
- Timestamp:
- Apr 23, 2008, 11:40:40 PM (17 years ago)
- Location:
- code/branches/network2/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network2/src/network/ClientConnection.cc
r1098 r1150 164 164 COUT(5) << "Cl.Con: receiver-Thread while loop: got new packet" << std::endl; 165 165 if ( !processData(&event) ) COUT(2) << "Current packet was not pushed to packetBuffer -> ev ongoing SegFault" << std::endl; 166 COUT(5) << "Cl.Con: processed Data in receiver-thread while loop" << std::endl; 166 167 break; 167 168 case ENET_EVENT_TYPE_DISCONNECT: -
code/branches/network2/src/network/diffTest.cc
r1098 r1150 11 11 #include "ConnectionManager.h" 12 12 #include "ClientInformation.h" 13 #include "Synchronisable.h" 13 14 #include <boost/thread/thread.hpp> 14 15 #include <boost/bind.hpp> … … 614 615 //### end packetbuffer test stuff ### 615 616 617 void testSynchronisable() { 618 Synchronisable* synchtest; 619 unsigned char* data = new unsigned char[100]; 620 for( int i=0; i<100; i++ ) { 621 data[i] = i%10; 622 } 623 //synchtest->registerVar( (const void*)data, 100, network::DATA ); 624 } 625 626 //######################################################################### 627 //### this stuff is only a loop to chose one of the prev test functions ### 628 //######################################################################### 616 629 void displayModes() { 617 630 std::cout << "mode datalength: length of data array to create" << std::endl; … … 629 642 std::cout << "\t-5 -> only half as long and ever %10 == 0 index is different" << std::endl; 630 643 } 631 644 /** 632 645 int main( int argc, char* argv[] ) { 633 646 int a,b,c,n; … … 699 712 } 700 713 return 0; 701 } 702 /** 714 }*/ 715 703 716 int main() { 704 717 std::cout << "############### START TEST (quit q) ###############" << std::endl; 705 testClientInformation( 10 ); 706 }*/ 718 testSynchronisable(); 719 } 720 721 //######################################################################### 722 //### the prev loop is only to chose one prev prev test functions ### 723 //#########################################################################
Note: See TracChangeset
for help on using the changeset viewer.