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.
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPSocket.cpp
- Branch:
- api-changes
- Revision:
- 30:3cc78f5db99d
- Parent:
- 28:163fbe3263f4
- Child:
- 32:2c5fc105fc50
diff -r 7bcec3189a93 -r 3cc78f5db99d TCPSocket.cpp
--- 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();
