Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 19:35408d190f4e, committed 2021-11-04
- Comitter:
- Ibiltari
- Date:
- Thu Nov 04 12:41:38 2021 +0100
- Parent:
- 18:3c678e1d5a84
- Commit message:
- Update to mbed 6
Changed in this revision
--- 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