Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 12:28:42 AM (17 years ago)
Author:
dumenim
Message:

networkstuff bluber fubber

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/dummyclient3.cc

    r601 r632  
    2828          std::cout << "connection established" << std::endl;
    2929  else std::cout << "problems establishing connection" << std::endl;
    30 
     30  char message[10000];
     31  char signs[] = "abcdefghijklmnopqrstuvwxy";
    3132  while (true) {
    3233          client.tick(0);
    33           std::cout << "your message: ";
    34           std::getline( std::cin, str );
    35           client.sendChat( str );
    36           std::cout << "sent message" << std::endl;
     34         
     35          std::cout << "your message2: ";
     36          for ( int i=0; i<9999; i++ ) {
     37            message[i] = signs[0];
     38          }
     39          message[9999] = 'z';
     40          std::string str( message );
     41          client.sendChat( str );
     42          std::cout << str << std::endl;
     43          std::cin.get(); std::cin.get();
    3744  }
    3845
Note: See TracChangeset for help on using the changeset viewer.