From 55d5552cb74583662b3b5e0d5956c50e3ee808c6 Mon Sep 17 00:00:00 2001 From: Princess of Sleeping Date: Mon, 19 Nov 2018 22:25:11 +0900 Subject: Add ksceNetConnect and sceNetConnectForSyscalls --- nids/360/SceNetPs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nids/360/SceNetPs.yml b/nids/360/SceNetPs.yml index dd4ab8d..f55aeef 100644 --- a/nids/360/SceNetPs.yml +++ b/nids/360/SceNetPs.yml @@ -7,9 +7,14 @@ modules: functions: sceNetAccept: 0x880A5423 sceNetBind: 0x84AB650F + sceNetConnect: 0x13491DA1 sceNetListen: 0x080C7992 sceNetRecvfrom: 0x49B1669C sceNetSendto: 0xAB746734 sceNetSetsockopt: 0x4BF5FAB4 sceNetSocket: 0xEB95B024 sceNetSocketClose: 0x21F4428D + SceNetPsForSyscalls: + nid: 0x2CBED2C6 + functions: + sceNetConnectForSyscalls: 0x14A4DE52 -- cgit v1.2.3 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(+) 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 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