wip

Dependents:   EthernetInterface_vz

Fork of Socket by VZTECH

Files at this revision

API Documentation at this revision

Comitter:
klauss
Date:
Tue Nov 24 14:03:40 2015 +0000
Parent:
28:b63d42feab2a
Commit message:
general purpose changes

Changed in this revision

TCPSocketConnection.cpp Show annotated file Show diff for this revision Revisions of this file
TCPSocketConnection.h Show annotated file Show diff for this revision Revisions of this file
--- a/TCPSocketConnection.cpp	Tue Sep 01 17:20:29 2015 +0000
+++ b/TCPSocketConnection.cpp	Tue Nov 24 14:03:40 2015 +0000
@@ -131,3 +131,8 @@
     }
     return readLen;
 }
+
+int TCPSocketConnection::get_fd ( void )
+{
+    return _sock_fd;
+}
--- a/TCPSocketConnection.h	Tue Sep 01 17:20:29 2015 +0000
+++ b/TCPSocketConnection.h	Tue Nov 24 14:03:40 2015 +0000
@@ -72,6 +72,8 @@
     \return the number of received bytes on success (>=0) or -1 on failure
     */
     int receive_all(char* data, int length);
+    
+    int get_fd ( void );
 
 private:
     bool _is_connected;