21 #include "OnboardNetworkStack.h"    22 #include "NanostackMemoryManager.h"    23 #include "MeshInterface.h"    24 #include "mesh_interface_types.h"    25 #include "eventOS_event.h"   280     struct nanostack_callback {
   285     static void call_event_tasklet_main(arm_event_s *event);
   286     char text_ip_address[40];
   288     int8_t call_event_tasklet;
 virtual nsapi_error_t socket_bind(void *handle, const SocketAddress &address)
Bind a specific address to a socket. 
virtual void socket_attach(void *handle, void(*callback)(void *), void *data)
Register a callback on state change of the socket. 
Wi-SUN mesh network interface class. 
virtual nsapi_error_t setsockopt(void *handle, int level, int optname, const void *optval, unsigned optlen)
Set stack-specific socket options. 
6LoWPAN-ND mesh network interface class 
virtual nsapi_error_t getsockopt(void *handle, int level, int optname, void *optval, unsigned *optlen)
Get stack-specific socket options. 
Representation of a stack's view of an interface. 
virtual nsapi_size_or_error_t socket_recv(void *handle, void *data, nsapi_size_t size)
Receive data over a TCP socket. 
virtual nsapi_error_t add_ethernet_interface(EMAC &emac, bool default_if, OnboardNetworkStack::Interface **interface_out)
Register a network interface with the IP stack. 
virtual nsapi_error_t socket_listen(void *handle, int backlog)
Listen for connections on a TCP socket. 
signed int nsapi_error_t
Type used to represent error codes. 
virtual nsapi_size_or_error_t socket_sendto(void *handle, const SocketAddress &address, const void *data, nsapi_size_t size)
Send a packet over a UDP socket. 
Prevents generation of copy constructor and copy assignment operator in derived classes. 
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets. 
Thread mesh network interface class. 
mbed OS API for onboard IP stack abstraction 
virtual nsapi_error_t socket_accept(void *handle, void **server, SocketAddress *address)
Accepts a connection on a TCP socket. 
virtual nsapi_error_t socket_connect(void *handle, const SocketAddress &address)
Connects TCP socket to a remote host. 
virtual nsapi_error_t socket_close(void *handle)
Close the socket. 
virtual nsapi_error_t socket_open(void **handle, nsapi_protocol_t proto)
Opens a socket. 
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets. 
This interface should be used to abstract low level access to networking hardware All operations rece...
virtual nsapi_size_or_error_t socket_send(void *handle, const void *data, nsapi_size_t size)
Send data over a TCP socket. 
Callback class based on template specialization. 
virtual const char * get_ip_address()
Get the local IP address. 
virtual nsapi_size_or_error_t socket_recvfrom(void *handle, SocketAddress *address, void *buffer, nsapi_size_t size)
Receive a packet over a UDP socket.