Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ppu/include/net/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <net/socket.h>
#include <net/select.h>
#include <net/poll.h>
#include <netinet/in.h>

#define NET_EPERM 1
#define NET_ENOENT 2
Expand Down Expand Up @@ -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();

Expand All @@ -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();
Expand Down
Loading