Base class for IP Based Networking Libraries

Dependencies:   DnsQuery

Dependents:   TempTower BSDInterfaceTests HelloBSDInterface ESP8266InterfaceTests ... more

For a complete getting started guide see the wiki...

Network Socket API

The Network Socket API provides a common interface for using sockets on network devices. The API provides a simple class-based interface that should be familiar to users experienced with other socket APIs. Additionally, the API provides a simple interface for implementing network devices, making it easy to connect hardware agnostic programs to new devices.

Network Interfaces

The NetworkInterface provides an abstract class for network devices that support sockets. Devices should provide a DeviceInterface class that inherits this interface and adds implementation specific methods for using the device. A NetworkInterface must be provided to a Socket constructor to open a socket on the interface. Currently two subclasses are defined for common devices, EthernetInterface and WiFiInterface.

Sockets

The Socket class is used for managing network sockets. Once opened, the socket provides a pipe through which data can sent and recieved to a specific endpoint. The socket class can be instantiated as either a TCPSocket or a UDPSocket which defines the protocol used for the connection.

History

Fix the path of DnsQuery.lib default tip

2016-05-25, by dkato [Wed, 25 May 2016 02:45:51 +0000] rev 125

Fix the path of DnsQuery.lib


Fix SocketAddress constructor to support ipv6

2016-05-16, by Christopher Haster [Mon, 16 May 2016 22:41:01 -0500] rev 124

Fix SocketAddress constructor to support ipv6

Fix typo causing ipv6 addresses in the constructor to fail.


Add NSAPI_ERROR_PARAMETER

2016-05-10, by Christopher Haster [Tue, 10 May 2016 12:08:45 -0500] rev 123

Add NSAPI_ERROR_PARAMETER


Fix bug with SocketAddress init

2016-05-10, by Christopher Haster [Tue, 10 May 2016 12:05:14 -0500] rev 122

Fix bug with SocketAddress init

per c1728p9


Merged 4f8b720d512a

2016-05-09, by Christopher Haster [Mon, 09 May 2016 22:40:30 -0500] rev 121

Merged 4f8b720d512a


Fix port issue in SocketAddress constructor

2016-05-09, by Christopher Haster [Mon, 09 May 2016 22:40:00 -0500] rev 120

Fix port issue in SocketAddress constructor


Fix issue with not passing interface through accept call

2016-04-21, by Christopher Haster [Thu, 21 Apr 2016 18:33:39 -0500] rev 119

Fix issue with not passing interface through accept call


Fix for timeout issue with WFI

2016-04-20, by Christopher Haster [Wed, 20 Apr 2016 20:38:00 -0500] rev 118

Fix for timeout issue with WFI


Fix bug in timeout logic

2016-04-20, by Christopher Haster [Wed, 20 Apr 2016 19:48:17 -0500] rev 117

Fix bug in timeout logic


Added WFI to save power in temporary polling implementation

2016-04-20, by Christopher Haster [Wed, 20 Apr 2016 19:20:51 -0500] rev 116

Added WFI to save power in temporary polling implementation