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.

Revisions of WiFiInterface.h

Revision Date Message Actions
114:964eba6394bc 2016-04-20 Move get_mac_address into Interface interface File  Diff  Annotate
113:80ba92c5e5ca 2016-04-20 Separate Stack/Interface concept into two distinct classes File  Diff  Annotate
104:d28d8b508e7c 2016-04-19 Revised documentation for Interface classes File  Diff  Annotate
89:b1d417383c0d 2016-04-19 Adopt mbed style doxygen comments File  Diff  Annotate
88:6cfd38609828 2016-04-06 Refactored WiFi enum File  Diff  Annotate
78:0914f9b9b24b 2016-04-05 Dragged over license from nsapi File  Diff  Annotate
77:b66a6984ed2d 2016-04-05 Integrated interfaces as arguments to sockets File  Diff  Annotate
63:531f4c27f360 2016-03-09 update formatting and add comments for documentation File  Diff  Annotate
57:3c873fab4207 2016-02-25 Standardized prefix to NS for enums and constants File  Diff  Annotate
42:49893d13c432 2016-02-23 Standardized some C++ style things File  Diff  Annotate
41:3ec1c97e9bbf 2016-02-23 Moved timeout handling to setTimeout/getTimeout functions File  Diff  Annotate
30:3cc78f5db99d 2016-02-22 Standardized formatting File  Diff  Annotate
26:9774a2edad71 2016-02-18 Moved abstract constructors to protected regions File  Diff  Annotate
21:35ed15069189 2016-02-18 Added UDPSocket and TCPSocket API and changes to core API File  Diff  Annotate
13:f84e69b3fdd3 2015-07-17 Removed const identifiers File  Diff  Annotate
7:b147c08301be 2015-06-17 Create WiFi base with connection parameters File  Diff  Annotate