Ibiltari Nora / OSC

Files at this revision

API Documentation at this revision

Comitter:
Ibiltari
Date:
Thu Nov 04 12:41:38 2021 +0100
Parent:
18:3c678e1d5a84
Commit message:
Update to mbed 6

Changed in this revision

OSCBundle.cpp Show annotated file Show diff for this revision Revisions of this file
OSCBundle.h Show annotated file Show diff for this revision Revisions of this file
OSCMessage.cpp Show annotated file Show diff for this revision Revisions of this file
OSCMessage.h Show annotated file Show diff for this revision Revisions of this file
--- a/OSCBundle.cpp	Fri Dec 14 20:51:12 2018 +0100
+++ b/OSCBundle.cpp	Thu Nov 04 12:41:38 2021 +0100
@@ -194,7 +194,7 @@
  SENDING
  =============================================================================*/
 
-OSCBundle& OSCBundle::send(UDPSocket &p, const char *host, uint16_t port){
+OSCBundle& OSCBundle::send(UDPSocket &p, const SocketAddress &address){
 
 	char  buff[128];
 	uint8_t lengthEnd;
@@ -242,9 +242,9 @@
             }
 
 //        p.write(sptr, 4);
-        msg->send(p, host, port);
+        msg->send(p, address);
     }
-    p.sendto(host, port, buff, lengthEnd);
+    p.sendto(address, buff, lengthEnd);
     return *this;
 }
 
--- a/OSCBundle.h	Fri Dec 14 20:51:12 2018 +0100
+++ b/OSCBundle.h	Thu Nov 04 12:41:38 2021 +0100
@@ -165,7 +165,7 @@
     SENDING
  =============================================================================*/
     
-	OSCBundle& send(UDPSocket &p, const char *host, uint16_t port);
+	OSCBundle& send(UDPSocket &p, const SocketAddress &address);
     
 /*=============================================================================
     FILLING
--- a/OSCMessage.cpp	Fri Dec 14 20:51:12 2018 +0100
+++ b/OSCMessage.cpp	Thu Nov 04 12:41:38 2021 +0100
@@ -432,7 +432,7 @@
     SENDING
  =============================================================================*/
 
-OSCMessage& OSCMessage::send(UDPSocket &p, const char *host, uint16_t port){
+OSCMessage& OSCMessage::send(UDPSocket &p, const SocketAddress &address){
 
 	char  buff[128];
 	uint8_t lengthEnd;
@@ -537,7 +537,7 @@
       //      p.write(ptr, datum->bytes);
         }
     }
-    p.sendto(host, port, buff, lengthEnd);
+    p.sendto(address, buff, lengthEnd);
     return *this;
 }
 
--- a/OSCMessage.h	Fri Dec 14 20:51:12 2018 +0100
+++ b/OSCMessage.h	Thu Nov 04 12:41:38 2021 +0100
@@ -318,7 +318,7 @@
  =============================================================================*/
 
     //send the message
-	OSCMessage& send(UDPSocket &p, const char *host, uint16_t port);
+	OSCMessage& send(UDPSocket &p, const SocketAddress &address);
 
 
     //fill the message from a byte stream