ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: TCPSocket.cpp
- Revision:
- 90:0a988e4abb72
- Parent:
- 89:b1d417383c0d
- Child:
- 92:dd5f19874adf
diff -r b1d417383c0d -r 0a988e4abb72 TCPSocket.cpp --- 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)