74 } nsapi_connection_status_t;
135 #define NSAPI_INTERFACE_PREFIX_SIZE 2 139 #define NSAPI_INTERFACE_NAME_MAX_SIZE 6 143 #define NSAPI_IP_SIZE NSAPI_IPv6_SIZE 147 #define NSAPI_IP_BYTES NSAPI_IPv6_BYTES 151 #define NSAPI_MAC_SIZE 18 155 #define NSAPI_MAC_BYTES 6 159 #define NSAPI_IPv4_SIZE 16 163 #define NSAPI_IPv4_BYTES 4 167 #define NSAPI_IPv6_SIZE 40 171 #define NSAPI_IPv6_BYTES 16 226 } nsapi_stack_level_t;
239 } nsapi_stack_option_t;
248 } nsapi_socket_level_t;
269 } nsapi_socket_option_t;
283 typedef nsapi_socket_level_t nsapi_level_t;
284 typedef nsapi_socket_option_t nsapi_option_t;
317 unsigned _stack_buffer[16];
380 int optname,
const void *optval,
unsigned optlen);
396 int optname,
void *optval,
unsigned *optlen);
412 nsapi_protocol_t proto);
487 nsapi_socket_t *socket,
nsapi_addr_t *addr, uint16_t *port);
505 const void *data, nsapi_size_t size);
523 void *data, nsapi_size_t size);
543 nsapi_addr_t addr, uint16_t port,
const void *data, nsapi_size_t size);
563 nsapi_addr_t *addr, uint16_t *port,
void *buffer, nsapi_size_t size);
580 void (*
callback)(
void *),
void *data);
597 int optname,
const void *optval,
unsigned optlen);
614 int optname,
void *optval,
unsigned *optlen);
nsapi_stack_option
Enum of standardized stack option names for level NSAPI_STACK of NetworkStack::setstackopt and getsta...
const struct nsapi_stack_api * stack_api
Network stack operation table.
void * nsapi_socket_t
Opaque handle for network sockets.
void * stack
Opaque handle for network stacks.
nsapi_security
Enum of encryption types.
nsapi_stack_api structure
signed int nsapi_error_t
Type used to represent error codes.
struct nsapi_stack_api nsapi_stack_api_t
nsapi_stack_api structure
nsapi_stack_level
Enum of standardized stack option levels for use with NetworkStack::setstackopt and getstackopt...
nsapi_ip_stack
Supported IP protocol versions of IP stack.
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets.
#define NSAPI_IP_BYTES
Maximum number of bytes for IP address.
nsapi_socket_level
Enum of standardized socket option levels for use with Socket::setsockopt and getsockopt.
signed int nsapi_value_or_error_t
Type used to represent either a value or error.
struct nsapi_addr nsapi_addr_t
IP address structure for passing IP addresses by value.
nsapi_event
Enum of event types.
struct nsapi_wifi_ap nsapi_wifi_ap_t
nsapi_wifi_ap structure
uint8_t bytes[16]
IP address The raw bytes of the IP address stored in big-endian format.
nsapi_version_t version
IP version.
nsapi_connection_status
Enum of connection status types.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.
IP address structure for passing IP addresses by value.
enum nsapi_security nsapi_security_t
Enum of encryption types.
struct nsapi_ip_mreq nsapi_ip_mreq_t
nsapi_ip_mreq structure
nsapi_error
Enum of standardized error codes.
struct nsapi_stack nsapi_stack_t
nsapi_stack structure
nsapi_protocol
Enum of socket protocols.
nsapi_socket_option
Enum of standardized socket option names for level NSAPI_SOCKET of Socket::setsockopt and getsockopt...
nsapi_version
Enum of IP address versions.