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.
Diff: UDPSocket.cpp
- Revision:
- 18:0a988e4abb72
- Parent:
- 17:b1d417383c0d
- Child:
- 20:dd5f19874adf
diff -r b1d417383c0d -r 0a988e4abb72 UDPSocket.cpp
--- a/UDPSocket.cpp Tue Apr 19 18:20:38 2016 -0500
+++ b/UDPSocket.cpp Tue Apr 19 18:22:15 2016 -0500
@@ -17,9 +17,18 @@
#include "UDPSocket.h"
#include "Timer.h"
+UDPSocket::UDPSocket()
+{
+}
+
UDPSocket::UDPSocket(NetworkInterface *iface)
- : Socket(iface, NSAPI_UDP)
{
+ open(iface);
+}
+
+int UDPSocket::open(NetworkInterface *iface)
+{
+ return Socket::open(iface, NSAPI_UDP);
}
int UDPSocket::bind(uint16_t port)