socket namespace
Classes
- struct BsdBufferConfig
- struct Config
- struct InAddr
Functions
- auto Recv(s32 socket, void* out, ulong outLen, s32 flags) -> s32
- auto RecvFrom(int, void*, ulong, int, sockaddr*, u32*) -> s32
- auto Send(s32 socket, const void* data, ulong dataLen, s32 flags) -> s32
- auto SendTo(int, const void*, ulong, int, const sockaddr*, u32) -> s32
- auto Accept(int, sockaddr*, u32*) -> s32
- auto Bind(int, const sockaddr*, u32) -> s32
-
auto Connect(s32 socket,
const sockaddr* address,
u32 addressLen) -> nn::
Result - auto GetPeerName(int, sockaddr*, u32*) -> s32
- auto GetSockName(int, sockaddr*, u32*) -> s32
- auto GetSockOpt(int, int, int, void*, u32*) -> s32
- auto Listen(int, int) -> s32
- auto SetSockOpt(s32 socket, s32 socketLevel, s32 option, const void*, u32 len) -> s32
- auto SockAtMark(int) -> s32
- auto Shutdown(int, int) -> s32
- auto ShutdownAllSockets(bool) -> s32
- auto Socket(s32 domain, s32 type, s32 protocol) -> s32
- auto SocketExempt(int, int, int) -> s32
- auto Write(int, const void*, ulong) -> s32
- auto Read(int, void*, ulong) -> s32
- auto Close(s32 socket) -> Result
- auto Select(int, fd_set*, fd_set*, fd_set*, timeval*) -> s32
- auto Poll(pollfd*, ulong, int) -> s32
- auto Fcntl(int, int, ...) -> s32
- auto InetPton(int, const char*, void*) -> s32
- auto InetNtop(int af, const void* src, char* dst, u32 size) -> const char*
- auto InetAton(const char* addressStr, InAddr* addressOut) -> s32
- auto InetNtoa(InAddr) -> char*
- auto InetAton(const char* addressStr, in_addr* addressOut) -> s32
- auto InetNtoa(in_addr) -> char*
- auto InetHtons(u16 val) -> u16
- auto InetHtonl(u32) -> u32
- auto InetNtohs(u16) -> u16
- auto InetNtohl(u32) -> u32
- auto GetLastErrno() -> s32
- void SetLastErrno(int)
- auto RecvMsg(int, msghdr*, int) -> s32
-
auto RecvMMsg(int,
mmsghdr*,
ulong,
int,
nn::
TimeSpan*) -> s32 - auto SendMsg(int, const msghdr*, int) -> s32
- auto SendMMsg(int, const mmsghdr*, ulong, int) -> s32
- auto Ioctl(int, u32, void*, ulong) -> s32
- auto Open(const char*, int) -> s32
- auto Initialize(void* pool, ulong poolSize, ulong allocPoolSize, int concurLimit) -> Result
-
auto Initialize(nn::
socket:: Config const&) -> Result - auto Finalize() -> s32
- auto GetAddrInfo(const char*, const char*, const addrinfo*, addrinfo**) -> s32
- auto GetAddrInfo(const char*, const char*, const addrinfo*, addrinfo**, int) -> s32
- auto GetAddrInfoWithoutNsdResolve(const char*, const char*, const addrinfo*, addrinfo**) -> s32
- auto GetAddrInfoWithoutNsdResolve(const char*, const char*, const addrinfo*, addrinfo**, int) -> s32
- auto FreeAddrInfo(addrinfo*) -> s32
- auto GetNameInfo(const sockaddr*, u32, char*, u32, char*, u32, int) -> s32
- auto GetNameInfo(const sockaddr*, u32, char*, u32, char*, u32, int, int) -> s32
- auto GetHostByName(const char* name) -> hostent*
- auto GetHostByName(const char*, int) -> hostent*
- auto GetHostByNameWithoutNsdResolve(const char*) -> hostent*
- auto GetHostByNameWithoutNsdResolve(const char*, int) -> hostent*
- auto GetHostByAddr(const void*, u32, int) -> hostent*
- auto GetHostByAddr(const void*, u32, int, int) -> hostent*
- auto RequestCancelHandle() -> s32
- auto Cancel(int) -> s32
- auto GetHErrno() -> s32
- auto HStrError(int) -> s32
- auto GAIStrError(int) -> s32
- auto Sysctl(int*, ulong, void*, ulong*, void*, ulong) -> s32
- auto DuplicateSocket(int, ulong) -> s32
- auto GetResourceStatistics(ResourceStatistics*, ulong) -> s32
Function documentation
s32 nn:: socket:: RecvFrom(int,
void*,
ulong,
int,
sockaddr*,
u32*)
#include <nn/socket.h>
s32 nn:: socket:: SendTo(int,
const void*,
ulong,
int,
const sockaddr*,
u32)
#include <nn/socket.h>
s32 nn:: socket:: Accept(int,
sockaddr*,
u32*)
#include <nn/socket.h>
s32 nn:: socket:: Bind(int,
const sockaddr*,
u32)
#include <nn/socket.h>
nn:: Result nn:: socket:: Connect(s32 socket,
const sockaddr* address,
u32 addressLen)
#include <nn/socket.h>
s32 nn:: socket:: GetPeerName(int,
sockaddr*,
u32*)
#include <nn/socket.h>
s32 nn:: socket:: GetSockName(int,
sockaddr*,
u32*)
#include <nn/socket.h>
s32 nn:: socket:: GetSockOpt(int,
int,
int,
void*,
u32*)
#include <nn/socket.h>
s32 nn:: socket:: Listen(int,
int)
#include <nn/socket.h>
s32 nn:: socket:: SetSockOpt(s32 socket,
s32 socketLevel,
s32 option,
const void*,
u32 len)
#include <nn/socket.h>
s32 nn:: socket:: SockAtMark(int)
#include <nn/socket.h>
s32 nn:: socket:: Shutdown(int,
int)
#include <nn/socket.h>
s32 nn:: socket:: ShutdownAllSockets(bool)
#include <nn/socket.h>
s32 nn:: socket:: SocketExempt(int,
int,
int)
#include <nn/socket.h>
s32 nn:: socket:: Write(int,
const void*,
ulong)
#include <nn/socket.h>
s32 nn:: socket:: Read(int,
void*,
ulong)
#include <nn/socket.h>
Result nn:: socket:: Close(s32 socket)
#include <nn/socket.h>
s32 nn:: socket:: Select(int,
fd_set*,
fd_set*,
fd_set*,
timeval*)
#include <nn/socket.h>
s32 nn:: socket:: Poll(pollfd*,
ulong,
int)
#include <nn/socket.h>
s32 nn:: socket:: Fcntl(int,
int,
...)
#include <nn/socket.h>
s32 nn:: socket:: InetPton(int,
const char*,
void*)
#include <nn/socket.h>
const char* nn:: socket:: InetNtop(int af,
const void* src,
char* dst,
u32 size)
#include <nn/socket.h>
s32 nn:: socket:: InetAton(const char* addressStr,
InAddr* addressOut)
#include <nn/socket.h>
char* nn:: socket:: InetNtoa(InAddr)
#include <nn/socket.h>
s32 nn:: socket:: InetAton(const char* addressStr,
in_addr* addressOut)
#include <nn/socket.h>
char* nn:: socket:: InetNtoa(in_addr)
#include <nn/socket.h>
u16 nn:: socket:: InetHtons(u16 val)
#include <nn/socket.h>
u32 nn:: socket:: InetHtonl(u32)
#include <nn/socket.h>
u16 nn:: socket:: InetNtohs(u16)
#include <nn/socket.h>
u32 nn:: socket:: InetNtohl(u32)
#include <nn/socket.h>
s32 nn:: socket:: GetLastErrno()
#include <nn/socket.h>
void nn:: socket:: SetLastErrno(int)
#include <nn/socket.h>
s32 nn:: socket:: RecvMsg(int,
msghdr*,
int)
#include <nn/socket.h>
s32 nn:: socket:: RecvMMsg(int,
mmsghdr*,
ulong,
int,
nn:: TimeSpan*)
#include <nn/socket.h>
s32 nn:: socket:: SendMsg(int,
const msghdr*,
int)
#include <nn/socket.h>
s32 nn:: socket:: SendMMsg(int,
const mmsghdr*,
ulong,
int)
#include <nn/socket.h>
s32 nn:: socket:: Ioctl(int,
u32,
void*,
ulong)
#include <nn/socket.h>
s32 nn:: socket:: Open(const char*,
int)
#include <nn/socket.h>
Result nn:: socket:: Initialize(void* pool,
ulong poolSize,
ulong allocPoolSize,
int concurLimit)
#include <nn/socket.h>
Result nn:: socket:: Initialize(nn:: socket:: Config const&)
#include <nn/socket.h>
s32 nn:: socket:: Finalize()
#include <nn/socket.h>
s32 nn:: socket:: GetAddrInfo(const char*,
const char*,
const addrinfo*,
addrinfo**)
#include <nn/socket.h>
s32 nn:: socket:: GetAddrInfo(const char*,
const char*,
const addrinfo*,
addrinfo**,
int)
#include <nn/socket.h>
s32 nn:: socket:: GetAddrInfoWithoutNsdResolve(const char*,
const char*,
const addrinfo*,
addrinfo**)
#include <nn/socket.h>
s32 nn:: socket:: GetAddrInfoWithoutNsdResolve(const char*,
const char*,
const addrinfo*,
addrinfo**,
int)
#include <nn/socket.h>
s32 nn:: socket:: FreeAddrInfo(addrinfo*)
#include <nn/socket.h>
s32 nn:: socket:: GetNameInfo(const sockaddr*,
u32,
char*,
u32,
char*,
u32,
int)
#include <nn/socket.h>
s32 nn:: socket:: GetNameInfo(const sockaddr*,
u32,
char*,
u32,
char*,
u32,
int,
int)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByName(const char* name)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByName(const char*,
int)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByNameWithoutNsdResolve(const char*)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByNameWithoutNsdResolve(const char*,
int)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByAddr(const void*,
u32,
int)
#include <nn/socket.h>
hostent* nn:: socket:: GetHostByAddr(const void*,
u32,
int,
int)
#include <nn/socket.h>
s32 nn:: socket:: RequestCancelHandle()
#include <nn/socket.h>
s32 nn:: socket:: Cancel(int)
#include <nn/socket.h>
s32 nn:: socket:: GetHErrno()
#include <nn/socket.h>
s32 nn:: socket:: HStrError(int)
#include <nn/socket.h>
s32 nn:: socket:: GAIStrError(int)
#include <nn/socket.h>
s32 nn:: socket:: DuplicateSocket(int,
ulong)
#include <nn/socket.h>
s32 nn:: socket:: GetResourceStatistics(ResourceStatistics*,
ulong)
#include <nn/socket.h>