diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel/net/net.h | 1 | ||||
-rw-r--r-- | include/user/net/net_syscalls.h | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/kernel/net/net.h b/include/kernel/net/net.h index 5670c96..a4d0c7a 100644 --- a/include/kernel/net/net.h +++ b/include/kernel/net/net.h @@ -539,6 +539,7 @@ typedef struct SceNetIcmpHeader { int sceNetSocket(const char *name, int domain, int type, int protocol); int sceNetAccept(int s, SceNetSockaddr *addr, unsigned int *addrlen); int sceNetBind(int s, const SceNetSockaddr *addr, unsigned int addrlen); +int sceNetConnect(int s, const SceNetSockaddr *name, unsigned int namelen); int sceNetListen(int s, int backlog); int sceNetRecvfrom(int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen); int sceNetSendto(int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen); diff --git a/include/user/net/net_syscalls.h b/include/user/net/net_syscalls.h new file mode 100644 index 0000000..6a6693d --- /dev/null +++ b/include/user/net/net_syscalls.h @@ -0,0 +1,16 @@ +#ifndef _PSP2_NET_NET_SYSCALLS_H_ +#define _PSP2_NET_NET_SYSCALLS_H_ + +#include <psp2/net/net.h> + +#ifdef __cplusplus +extern "C" { +#endif + +int sceNetConnectForSyscalls(int s, const SceNetSockaddr *name, unsigned int namelen); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_NET_NET_SYSCALLS_H_ */ |