mirror of
https://github.com/zeldaret/botw
synced 2026-05-27 08:06:56 -04:00
18c60323a9
git subrepo clone https://github.com/open-ead/sead lib/sead subrepo: subdir: "lib/sead" merged: "1b66e825d" upstream: origin: "https://github.com/open-ead/sead" branch: "master" commit: "1b66e825d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone (merge) https://github.com/open-ead/nnheaders lib/NintendoSDK subrepo: subdir: "lib/NintendoSDK" merged: "9ee21399f" upstream: origin: "https://github.com/open-ead/nnheaders" branch: "master" commit: "9ee21399f" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone https://github.com/open-ead/agl lib/agl subrepo: subdir: "lib/agl" merged: "7c063271b" upstream: origin: "https://github.com/open-ead/agl" branch: "master" commit: "7c063271b" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone https://github.com/open-ead/EventFlow lib/EventFlow subrepo: subdir: "lib/EventFlow" merged: "c35d21b34" upstream: origin: "https://github.com/open-ead/EventFlow" branch: "master" commit: "c35d21b34" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596"
30 lines
839 B
C++
30 lines
839 B
C++
/**
|
|
* @file socket.h
|
|
* @brief Functions for opening sockets for wireless communication.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nn/types.h>
|
|
#include <sys/socket.h>
|
|
|
|
namespace nn {
|
|
namespace socket {
|
|
struct InAddr {
|
|
u32 addr;
|
|
};
|
|
|
|
Result Initialize(void* pool, ulong poolSize, ulong allocPoolSize, int concurLimit);
|
|
Result Finalize();
|
|
s32 SetSockOpt(s32 socket, s32 socketLevel, s32 option, void const*, u32 len);
|
|
u64 Send(s32 socket, void const* buffer, u64 bufferLength, s32 flags);
|
|
s32 Socket(s32 domain, s32 type, s32 proto);
|
|
u16 InetHtons(u16);
|
|
u32 InetAton(const char* str, InAddr*);
|
|
u32 Connect(s32 socket, const sockaddr* addr, u32 addrLen);
|
|
u32 Bind(s32 socket, const sockaddr* addr, u32 addrLen);
|
|
u32 Listen(s32 socket, s32 backlog);
|
|
u32 Accept(s32 socket, sockaddr* addrOut, u32* addrLenOut);
|
|
} // namespace socket
|
|
} // namespace nn
|