mbed socket API

Dependents:   EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more

Deprecated

This is an mbed 2 sockets library. For mbed 5, network sockets have been revised to better support additional network stacks and thread safety here.

Revision:
10:d24738f4ef99
Parent:
8:9cf9c2d45264
Child:
11:3d83c348fb8b
--- a/UDPSocket.h	Fri Jul 27 15:56:20 2012 +0000
+++ b/UDPSocket.h	Tue Jul 31 11:50:55 2012 +0000
@@ -48,19 +48,17 @@
     
     /** Send a packet to the remote host.
     \param packet UDP Packet to be sent to the remote host
-    \param timeout_ms The maximum amount of time in ms to wait while trying to send the packet.
     \return the number of written bytes on success (>=0) or -1 on failure
     */
-    int sendTo(UDPPacket& packet, int timeout_ms=0);
+    int sendTo(UDPPacket& packet);
     
     /** Receive data from a remote host.
     If a message is too long to fit in the supplied packet, excess bytes are
     discarded.
     \param packet UDP Packet received from the remote host
-    \param timeout The maximum amount of time in ms to wait while trying to receive packet.
     \return the number of received bytes on success (>=0) or -1 on failure
     */
-    int receiveFrom(UDPPacket& packet, int timeout_ms=0);
+    int receiveFrom(UDPPacket& packet);
 };
 
 #endif