Changeset 20

Show
Ignore:
Timestamp:
09/22/05 12:43:29 (3 years ago)
Author:
ross
Message:

switched to using UdpListeningReceiveSocket? where possible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oscpack/trunk/osc/OscDump.cpp

    r16 r20  
    6767 
    6868  OscDumpPacketListener listener; 
    69   UdpReceiveSocket s( IpEndpointName( IpEndpointName::ANY_ADDRESS, port ) ); 
    70   SocketReceiveMultiplexer mux; 
    71  mux.AttachSocketListener( &s, &listener ); 
     69    UdpListeningReceiveSocket s( 
     70            IpEndpointName( IpEndpointName::ANY_ADDRESS, port ), 
     71            &listener ); 
    7272 
    7373  std::cout << "listening for input on port " << port << "...\n"; 
    7474  std::cout << "press ctrl-c to end\n"; 
    7575 
    76   mux.RunUntilSigInt(); 
     76  s.RunUntilSigInt(); 
    7777 
    7878  std::cout << "finishing.\n";   
  • oscpack/trunk/osc/OscReceiveTest.cpp

    r16 r20  
    225225{ 
    226226    osc::OscReceiveTestPacketListener listener; 
    227   UdpReceiveSocket s( IpEndpointName( IpEndpointName::ANY_ADDRESS, port ) ); 
    228   SocketReceiveMultiplexer mux; 
    229  mux.AttachSocketListener( &s, &listener ); 
     227  UdpListeningReceiveSocket s( 
     228            IpEndpointName( IpEndpointName::ANY_ADDRESS, port ), 
     229            &listener ); 
    230230 
    231231  std::cout << "listening for input on port " << port << "...\n"; 
    232232  std::cout << "press ctrl-c to end\n"; 
    233233 
    234   mux.RunUntilSigInt(); 
     234  s.RunUntilSigInt(); 
    235235 
    236236  std::cout << "finishing.\n"; 
     
    259259 
    260260#endif /* NO_OSC_TEST_MAIN */ 
     261