From 97dd1772b1bd9a2be66fb747874dad0819215251 Mon Sep 17 00:00:00 2001 From: Princess of Sleeping Date: Mon, 19 Nov 2018 22:26:34 +0900 Subject: Add ksceNetConnect --- include/kernel/net/net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3 From cfb4fa42b8d7adce183dfcf5f84aed72ee8391bf Mon Sep 17 00:00:00 2001 From: Princess of Sleeping Date: Mon, 19 Nov 2018 22:33:19 +0900 Subject: Add net_syscalls.h and sceNetConnectForSyscalls --- include/user/net/net_syscalls.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/user/net/net_syscalls.h (limited to 'include') 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 + +#ifdef __cplusplus +extern "C" { +#endif + +int sceNetConnectForSyscalls(int s, const SceNetSockaddr *name, unsigned int namelen); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_NET_NET_SYSCALLS_H_ */ -- cgit v1.2.3