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.
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: SocketInterface.h
- Revision:
- 14:9e1bd182ef07
- Parent:
- 13:f84e69b3fdd3
- Child:
- 16:658d4943c753
--- a/SocketInterface.h Fri Jul 17 23:14:01 2015 +0000 +++ b/SocketInterface.h Wed Jul 22 20:16:57 2015 +0000 @@ -138,9 +138,15 @@ @return 0 on success, -1 on failure (when an hostname cannot be resolved by DNS). */ virtual int32_t close() const = 0; + + /** Get the socket's unique handle + @return socket's handle number + */ + virtual uint32_t getHandle() const = 0; + protected: socket_protocol_t _type; - + uint32_t _handle; }; #endif