7 #ifndef _PSP2KERN_NET_NET_H_
8 #define _PSP2KERN_NET_NET_H_
26 int ksceNetSetsockopt(
int s,
int level,
int optname,
const void *optval,
unsigned int optlen);
29 #define ksceNetRecv(s, buf, len, flags) ksceNetRecvfrom(s, buf, len, flags, NULL, 0)
30 #define ksceNetSend(s, msg, len, flags) ksceNetSendto(s, msg, len, flags, NULL, 0)
31 #define ksceNetSocketClose ksceNetClose
34 #define ksceNetHtons __builtin_bswap16
35 #define ksceNetHtonl __builtin_bswap32
uint8_t type
0 = read?, 1 = write?, 2 = feature?, 3 = ?
Definition: bt.h:2
int flags
Event flags.
Definition: debug.h:3
int ksceNetListen(int s, int backlog)
int ksceNetConnect(int s, const SceNetSockaddr *name, unsigned int namelen)
int ksceNetSendto(int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen)
int ksceNetSetsockopt(int s, int level, int optname, const void *optval, unsigned int optlen)
int ksceNetRecvfrom(int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen)
int ksceNetSocket(const char *name, int domain, int type, int protocol)
int ksceNetBind(int s, const SceNetSockaddr *addr, unsigned int addrlen)
int ksceNetAccept(int s, SceNetSockaddr *addr, unsigned int *addrlen)