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
- Branch:
- api-changes
- Revision:
- 22:4fca633c0633
- Parent:
- 21:35ed15069189
- Child:
- 23:1e86d9fb3d86
--- a/SocketInterface.h Thu Feb 18 03:11:58 2016 -0600 +++ b/SocketInterface.h Thu Feb 18 03:29:39 2016 -0600 @@ -78,7 +78,7 @@ * @param timeout_ms Maximum amount of time to wait * @return 0 on success */ - virtual int32_t send(const void *data, uint32_t len, uint32_t timeout_ms = 15000) = 0; + virtual int32_t send(const void *data, uint32_t len, uint32_t timeout_ms) = 0; /** In client or server mode receive data * @param data a buffer to store the data in @@ -86,7 +86,7 @@ * @param timeout_ms The longest time to wait for the data * @return Number of bytes sent or a negative value on failure */ - virtual int32_t recv(void *data, uint32_t len, uint32_t timeout_ms = 15000) = 0; + virtual int32_t recv(void *data, uint32_t len, uint32_t timeout_ms) = 0; private: char *_ip_address;