ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: Socket.h
- Revision:
- 79:43a7e8c0d6cc
- Parent:
- 78:0914f9b9b24b
- Child:
- 81:1600369a29dd
--- a/Socket.h Tue Apr 05 09:20:32 2016 -0500 +++ b/Socket.h Tue Apr 05 10:40:34 2016 -0500 @@ -17,6 +17,8 @@ #ifndef SOCKET_H #define SOCKET_H +#include "SocketAddress.h" +#include "NetworkInterface.h" /** Abstract socket class */ @@ -24,7 +26,6 @@ public: /** Socket lifetime */ - Socket(); ~Socket(); /** Set blocking or non-blocking mode of the socket @@ -57,6 +58,14 @@ \param shutdown free the left-over data in message queues */ int close(bool shutdown=true); + +protected: + Socket(NetworkInterface *iface, NetworkInterface::protocol_t proto); + + NetworkInterface *_iface; + void *_socket; + bool _blocking; + unsigned _timeout; }; #endif