NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPSocket.cpp
- Branch:
- api-changes
- Revision:
- 30:3cc78f5db99d
- Parent:
- 28:163fbe3263f4
- Child:
- 32:2c5fc105fc50
--- a/TCPSocket.cpp Mon Feb 22 20:58:50 2016 +0000 +++ b/TCPSocket.cpp Mon Feb 22 21:03:38 2016 +0000 @@ -17,16 +17,19 @@ #include "TCPSocket.h" TCPSocket::TCPSocket(NetworkInterface *iface) - : Socket(iface, SOCK_TCP) { + : Socket(iface, SOCK_TCP) +{ } -int32_t TCPSocket::open() { +int32_t TCPSocket::open() +{ SocketInterface *s = _get_socket(); if (!s) return -2; return s->close(); } -int32_t TCPSocket::close() { +int32_t TCPSocket::close() +{ SocketInterface *s = _get_socket(); if (!s) return -2; return s->close();