From 41168e5ff1c757602db5ba99323833fc7e9f3cb8 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Thu, 18 Jun 2026 16:12:06 -0300 Subject: [PATCH] Update net.h --- ppu/include/net/net.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ppu/include/net/net.h b/ppu/include/net/net.h index 63f6f2ef..46a533bf 100644 --- a/ppu/include/net/net.h +++ b/ppu/include/net/net.h @@ -4,6 +4,7 @@ #include #include #include +#include #define NET_EPERM 1 #define NET_ENOENT 2 @@ -139,6 +140,19 @@ typedef struct _net_init_param s32 flags; } netInitParam; +typedef struct +{ + s32 s; + s32 proto; + s32 recv_queue_len; + s32 send_queue_len; + struct in_addr local_adr; + s32 local_port; + struct in_addr remote_adr; + s32 remote_port; + s32 state; +} netSocketInfo; + s32 netInitialize(); s32 netDeinitialize(); @@ -147,6 +161,7 @@ s32* netHErrnoLoc(); s32 netInitializeNetworkEx(netInitParam* param); s32 netFinalizeNetwork(); +s32 netGetSockInfo(s32 socket, netSocketInfo* p, s32 n); s32 netShowIfConfig(); s32 netShowNameServer(); s32 netShowRoute();