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: TCPSocket.cpp
- Revision:
- 18:0a988e4abb72
- Parent:
- 17:b1d417383c0d
- Child:
- 20:dd5f19874adf
--- a/TCPSocket.cpp Tue Apr 19 18:20:38 2016 -0500 +++ b/TCPSocket.cpp Tue Apr 19 18:22:15 2016 -0500 @@ -17,9 +17,18 @@ #include "TCPSocket.h" #include "Timer.h" +TCPSocket::TCPSocket() +{ +} + TCPSocket::TCPSocket(NetworkInterface *iface) - : Socket(iface, NSAPI_TCP) { + open(iface); +} + +int TCPSocket::open(NetworkInterface *iface) +{ + return Socket::open(iface, NSAPI_TCP); } int TCPSocket::connect(const SocketAddress &addr)