X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpretor/preprocessor/faust-0.9.47mr3/architecture/osclib/oscpack/examples/SimpleSend.cpp diff --git a/interpretor/preprocessor/faust-0.9.47mr3/architecture/osclib/oscpack/examples/SimpleSend.cpp b/interpretor/preprocessor/faust-0.9.47mr3/architecture/osclib/oscpack/examples/SimpleSend.cpp deleted file mode 100644 index b54faa6..0000000 --- a/interpretor/preprocessor/faust-0.9.47mr3/architecture/osclib/oscpack/examples/SimpleSend.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - Simple example of sending an OSC message using oscpack. -*/ - -#include "osc/OscOutboundPacketStream.h" -#include "ip/UdpSocket.h" - - -#define ADDRESS "127.0.0.1" -#define PORT 7000 - -#define OUTPUT_BUFFER_SIZE 1024 - -int main(int argc, char* argv[]) -{ - UdpTransmitSocket transmitSocket( IpEndpointName( ADDRESS, PORT ) ); - - char buffer[OUTPUT_BUFFER_SIZE]; - osc::OutboundPacketStream p( buffer, OUTPUT_BUFFER_SIZE ); - - p << osc::BeginBundleImmediate - << osc::BeginMessage( "/test1" ) - << true << 23 << (float)3.1415 << "hello" << osc::EndMessage - << osc::BeginMessage( "/test2" ) - << true << 24 << (float)10.8 << "world" << osc::EndMessage - << osc::EndBundle; - - transmitSocket.Send( p.Data(), p.Size() ); -} -