ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

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();