| | 223 | |
|---|
| | 224 | void RunReceiveTest( int port ) |
|---|
| | 225 | { |
|---|
| | 226 | osc::OscReceiveTestPacketListener listener; |
|---|
| | 227 | UdpReceiveSocket s( IpEndpointName( IpEndpointName::ANY_ADDRESS, port ) ); |
|---|
| | 228 | SocketReceiveMultiplexer mux; |
|---|
| | 229 | mux.AttachSocketListener( &s, &listener ); |
|---|
| | 230 | |
|---|
| | 231 | std::cout << "listening for input on port " << port << "...\n"; |
|---|
| | 232 | std::cout << "press ctrl-c to end\n"; |
|---|
| | 233 | |
|---|
| | 234 | mux.RunUntilSigInt(); |
|---|
| | 235 | |
|---|
| | 236 | std::cout << "finishing.\n"; |
|---|
| | 237 | } |
|---|
| | 238 | |
|---|
| 236 | | osc::OscReceiveTestPacketListener listener; |
|---|
| 237 | | UdpReceiveSocket s( IpEndpointName( IpEndpointName::ANY_ADDRESS, port ) ); |
|---|
| 238 | | SocketReceiveMultiplexer mux; |
|---|
| 239 | | mux.AttachSocketListener( &s, &listener ); |
|---|
| 240 | | |
|---|
| 241 | | std::cout << "listening for input on port " << port << "...\n"; |
|---|
| 242 | | std::cout << "press ctrl-c to end\n"; |
|---|
| 243 | | |
|---|
| 244 | | mux.RunUntilSigInt(); |
|---|
| 245 | | |
|---|
| 246 | | std::cout << "finishing.\n"; |
|---|
| | 255 | osc::RunReceiveTest( port ); |
|---|