5 #define IP(a, b, c, d) (((a) << 0) + ((b) << 8) + ((c) << 16) + ((d) << 24))
6 #define htons(a) __builtin_bswap16(a)
10 #define AF_INET 0x0200
20 unsigned short sin_port
;
21 struct in_addr sin_addr
;
25 extern int (*sceNetSocket
)(const char *, int, int, int);
26 extern int (*sceNetConnect
)(int, struct sockaddr_in
*, int);
27 extern int (*sceNetSend
)(int, const void *, size_t, int);
28 extern int (*sceNetClose
)(int);
30 void initNetwork(void);