Rewrite from scratch a TCP/IP stack for mbed. So far the following parts are usable: Drivers: - EMAC driver (from CMSIS 2.0) Protocols: - Ethernet protocol - ARP over ethernet for IPv4 - IPv4 over Ethernet - ICMPv4 over IPv4 - UDPv4 over IPv4 APIs: - Sockets for UDPv4 The structure of this stack is designed to be very modular. Each protocol can register one or more protocol to handle its payload, and in each protocol, an API can be hooked (like Sockets for example). This is an early release.

Revision:
1:f4040665bc61
Parent:
0:19f5f51584de
--- a/Sockets.h	Sun Jun 12 11:23:03 2011 +0000
+++ b/Sockets.h	Sun Jun 12 19:17:11 2011 +0000
@@ -66,13 +66,13 @@
 extern Net_API_t    sockets;
 
 
-CAPI Socket_t    Sockets_Open(Socket_Family_t family, Socket_Protocol_t protocol, int32_t options);
-CAPI int32_t    Sockets_Bind(Socket_t socket, Socket_Addr_t *addr, int32_t addrLen);
-CAPI int32_t    Sockets_Send(Socket_t socket, uint8_t *data, int32_t length, int32_t flags);
-CAPI int32_t    Sockets_SendTo(Socket_t socket, uint8_t *data, int32_t length, int32_t flags, const Socket_Addr_t *remoteAddr, int32_t addrLen);
-CAPI int32_t    Sockets_Recv(Socket_t socket, uint8_t *data, int32_t length, int32_t flags);
-CAPI int32_t    Sockets_RecvFrom(Socket_t socket, uint8_t *data, int32_t length, int32_t flags, Socket_Addr_t *remoteAddr, int32_t *addrLen);
-CAPI int32_t    Sockets_Close(Socket_t socket);
+Socket_t    Sockets_Open(Socket_Family_t family, Socket_Protocol_t protocol, int32_t options);
+int32_t    Sockets_Bind(Socket_t socket, Socket_Addr_t *addr, int32_t addrLen);
+int32_t    Sockets_Send(Socket_t socket, uint8_t *data, int32_t length, int32_t flags);
+int32_t    Sockets_SendTo(Socket_t socket, uint8_t *data, int32_t length, int32_t flags, const Socket_Addr_t *remoteAddr, int32_t addrLen);
+int32_t    Sockets_Recv(Socket_t socket, uint8_t *data, int32_t length, int32_t flags);
+int32_t    Sockets_RecvFrom(Socket_t socket, uint8_t *data, int32_t length, int32_t flags, Socket_Addr_t *remoteAddr, int32_t *addrLen);
+int32_t    Sockets_Close(Socket_t socket);
 
 
 #endif /* __SOCKET_H__ */