2 #include "../../types.h"
6 BsdServiceType_User =
BIT(0),
7 BsdServiceType_System =
BIT(1),
8 BsdServiceType_Auto = BsdServiceType_User | BsdServiceType_System,
32 Result socketGetLastResult(
void);
34 void socketExit(
void);
38 return socketInitialize(NULL);
42 int socketSslConnectionSetSocketDescriptor(
SslConnection *c,
int sockfd);
47 #ifdef _SOCKLEN_T_DECLARED
50 int socketSslConnectionSetDtlsSocketDescriptor(
SslConnection *c,
int sockfd,
const struct sockaddr *addr, socklen_t addrlen);
54 int socketNifmRequestRegisterSocketDescriptor(
NifmRequest* r,
int sockfd);
57 int socketNifmRequestUnregisterSocketDescriptor(
NifmRequest* r,
int sockfd);
Request.
Definition: nifm.h:42
Configuration structure for socketInitalize.
Definition: socket.h:12
u32 tcp_rx_buf_max_size
Maximum size of the TCP receive buffer. If it is 0, the size of the buffer is fixed to its initial va...
Definition: socket.h:16
u32 tcp_rx_buf_size
Size of the TCP receive buffer (initial or fixed).
Definition: socket.h:14
u32 tcp_tx_buf_max_size
Maximum size of the TCP transfer (send) buffer. If it is 0, the size of the buffer is fixed to its in...
Definition: socket.h:15
u32 udp_tx_buf_size
Size of the UDP transfer (send) buffer (typically 0x2400 bytes).
Definition: socket.h:18
u32 num_bsd_sessions
Number of BSD service sessions (typically 3).
Definition: socket.h:23
u32 udp_rx_buf_size
Size of the UDP receive buffer (typically 0xA500 bytes).
Definition: socket.h:19
u32 sb_efficiency
Number of buffers for each socket (standard values range from 1 to 8).
Definition: socket.h:21
u32 tcp_tx_buf_size
Size of the TCP transfer (send) buffer (initial or fixed).
Definition: socket.h:13
BsdServiceType bsd_service_type
BSD service type (typically BsdServiceType_User).
Definition: socket.h:24
SslConnection.
Definition: ssl.h:201
#define NX_INLINE
Flags a function as (always) inline.
Definition: types.h:86
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21