libnx
v4.8.0
|
HTC sockets (htcs) service IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
struct | HtcsPeerName |
struct | HtcsPortName |
struct | HtcsSockAddr |
struct | HtcsTimeVal |
struct | HtcsFdSet |
struct | HtcsSocket |
Macros | |
#define | HTCS_PEER_NAME_MAX 32 |
#define | HTCS_PORT_NAME_MAX 32 |
#define | HTCS_SESSION_COUNT_MAX 0x10 |
#define | HTCS_SOCKET_COUNT_MAX 40 |
#define | HTCS_FD_SET_SIZE HTCS_SOCKET_COUNT_MAX |
Typedefs | |
typedef uint16_t | HtcsAddressFamilyType |
Functions | |
Result | htcsInitialize (u32 num_sessions) |
Initialize the HTCS service. | |
void | htcsExit (void) |
Exit the HTCS service. | |
Service * | htcsGetManagerServiceSession (void) |
Gets the Service object for the actual HTCS manager service session. | |
Service * | htcsGetMonitorServiceSession (void) |
Gets the Service object for the actual HTCS monitor service session. | |
Result | htcsGetPeerNameAny (HtcsPeerName *out) |
Manager functionality. | |
Result | htcsGetDefaultHostName (HtcsPeerName *out) |
Result | htcsCreateSocket (s32 *out_err, HtcsSocket *out, bool enable_disconnection_emulation) |
Result | htcsStartSelect (u32 *out_task_id, Handle *out_event_handle, const s32 *read, size_t num_read, const s32 *write, size_t num_write, const s32 *except, size_t num_except, s64 tv_sec, s64 tv_usec) |
Result | htcsEndSelect (s32 *out_err, s32 *out_count, s32 *read, size_t num_read, s32 *write, size_t num_write, s32 *except, size_t num_except, u32 task_id) |
Result | htcsSocketClose (HtcsSocket *s, s32 *out_err, s32 *out_res) |
Socket functionality. | |
Result | htcsSocketConnect (HtcsSocket *s, s32 *out_err, s32 *out_res, const HtcsSockAddr *address) |
Result | htcsSocketBind (HtcsSocket *s, s32 *out_err, s32 *out_res, const HtcsSockAddr *address) |
Result | htcsSocketListen (HtcsSocket *s, s32 *out_err, s32 *out_res, s32 backlog_count) |
Result | htcsSocketShutdown (HtcsSocket *s, s32 *out_err, s32 *out_res, s32 how) |
Result | htcsSocketFcntl (HtcsSocket *s, s32 *out_err, s32 *out_res, s32 command, s32 value) |
Result | htcsSocketAcceptStart (HtcsSocket *s, u32 *out_task_id, Handle *out_event_handle) |
Result | htcsSocketAcceptResults (HtcsSocket *s, s32 *out_err, HtcsSocket *out_socket, HtcsSockAddr *out_address, u32 task_id) |
Result | htcsSocketRecvStart (HtcsSocket *s, u32 *out_task_id, Handle *out_event_handle, s32 mem_size, s32 flags) |
Result | htcsSocketRecvResults (HtcsSocket *s, s32 *out_err, s64 *out_size, void *buffer, size_t buffer_size, u32 task_id) |
Result | htcsSocketSendStart (HtcsSocket *s, u32 *out_task_id, Handle *out_event_handle, const void *buffer, size_t buffer_size, s32 flags) |
Result | htcsSocketSendResults (HtcsSocket *s, s32 *out_err, s64 *out_size, u32 task_id) |
Result | htcsSocketStartSend (HtcsSocket *s, u32 *out_task_id, Handle *out_event_handle, s64 *out_max_size, s64 size, s32 flags) |
Result | htcsSocketContinueSend (HtcsSocket *s, s64 *out_size, bool *out_wait, const void *buffer, size_t buffer_size, u32 task_id) |
Result | htcsSocketEndSend (HtcsSocket *s, s32 *out_err, s64 *out_size, u32 task_id) |
Result | htcsSocketStartRecv (HtcsSocket *s, u32 *out_task_id, Handle *out_event_handle, s64 size, s32 flags) |
Result | htcsSocketEndRecv (HtcsSocket *s, s32 *out_err, s64 *out_size, void *buffer, size_t buffer_size, u32 task_id) |
Result | htcsSocketGetPrimitive (HtcsSocket *s, s32 *out) |
void | htcsCloseSocket (HtcsSocket *s) |
HTC sockets (htcs) service IPC wrapper.
Please use <<TODO>> instead.