mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Missed the header file
This commit is contained in:
parent
22727bcf8d
commit
fb1d6f4d5c
20
nx/include/switch/services/bsd.h
Normal file
20
nx/include/switch/services/bsd.h
Normal file
@ -0,0 +1,20 @@
|
||||
Result bsdInitialize(TransferMemory* tmem);
|
||||
int bsdGetErrno();
|
||||
int bsdConnect(int sockfd, void* addr, u32 addrlen);
|
||||
int bsdSocket(int domain, int type, int protocol);
|
||||
int bsdBind(int sockfd, void* addr, u32 addrlen);
|
||||
int bsdListen(int sockfd, int backlog);
|
||||
|
||||
#define BSD_AF_INET 2
|
||||
#define BSD_AF_INET6 10
|
||||
|
||||
#define BSD_SOCK_STREAM 1
|
||||
#define BSD_SOCK_DGRAM 2
|
||||
|
||||
struct bsd_sockaddr_in {
|
||||
u8 sin_len;
|
||||
u8 sin_family;
|
||||
u16 sin_port;
|
||||
u32 sin_addr;
|
||||
u8 sin_zero[8];
|
||||
};
|
Loading…
Reference in New Issue
Block a user