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: 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
