PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
Data Structures | Defines | Typedefs | Enumerations | Functions
include/psp2/net/net.h File Reference

Header file related to net. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SceNetFdSet
struct  SceNetInAddr
struct  SceNetSockaddrIn
struct  SceNetIpMreq
struct  SceNetInitParam
struct  SceNetEmulationData
struct  SceNetEmulationParam
struct  SceNetEtherAddr
struct  SceNetDnsInfo
struct  SceNetEpollDataExt
union  SceNetEpollData
struct  SceNetEpollSystemData
struct  SceNetEpollEvent
struct  SceNetResolverParam
struct  SceNetLinger
struct  SceNetSockaddr
struct  SceNetIovec
struct  SceNetMsghdr
struct  SceNetSockInfo
struct  SceNetStatisticsInfo
struct  SceNetIpHeaderIpVerHl
union  SceNetIpHeaderUnion
struct  SceNetIpHeader
struct  SceNetIcmpHeaderEcho
struct  SceNetIcmpHeaderFrag
union  SceNetIcmpHeaderUnion
struct  SceNetIcmpHeader

Defines

#define PSP2_NET_EPOLL_ABORT_FLAG_PRESERVATION   0x00000001
#define PSP2_NET_IP_DEFAULT_MULTICAST_TTL   1
#define PSP2_NET_IP_DEFAULT_MULTICAST_LOOP   1
#define PSP2_NET_IPVERSION   4
#define PSP2_NET_IP_RF   0x8000
#define PSP2_NET_IP_DF   0x4000
#define PSP2_NET_IP_MF   0x2000
#define PSP2_NET_IP_OFFMASK   0x1fff
#define PSP2_NET_INADDR_ANY   0x00000000
#define PSP2_NET_INADDR_LOOPBACK   0x7f000001
#define PSP2_NET_INADDR_BROADCAST   0xffffffff
#define PSP2_NET_INADDR_UNSPEC_GROUP   0xe0000000
#define PSP2_NET_INADDR_AUTOIP   0xa9fe0000
#define PSP2_NET_IN_CLASSD_NET   0xf0000000
#define PSP2_NET_IN_AUTOIP_NET   0xffff0000
#define PSP2_NET_ADHOC_PORT   3658
#define PSP2_NET_AF_INET   2
#define PSP2_NET_DEBUG_NAME_LEN_MAX   31
#define PSP2_NET_RESOLVER_PORT   53
#define PSP2_NET_RESOLVER_HOSTNAME_LEN_MAX   255
#define PSP2_NET_ID_SOCKET_MIN   0
#define PSP2_NET_ID_SOCKET_MAX   1023

Typedefs

typedef void *(* SceNetResolverFunctionAllocate )(unsigned int size, int rid, const char *name, void *user)
typedef void(* SceNetResolverFunctionFree )(void *ptr, int rid, const char *name, void *user)
typedef struct SceNetFdSet SceNetFdSet
typedef struct SceNetInAddr SceNetInAddr
typedef struct SceNetSockaddrIn SceNetSockaddrIn
typedef struct SceNetIpMreq SceNetIpMreq
typedef struct SceNetInitParam SceNetInitParam
typedef struct SceNetEmulationData SceNetEmulationData
typedef struct SceNetEmulationParam SceNetEmulationParam
typedef struct SceNetEtherAddr SceNetEtherAddr
typedef struct SceNetDnsInfo SceNetDnsInfo
typedef struct SceNetEpollDataExt SceNetEpollDataExt
typedef union SceNetEpollData SceNetEpollData
typedef struct
SceNetEpollSystemData 
SceNetEpollSystemData
typedef struct SceNetEpollEvent SceNetEpollEvent
typedef struct SceNetResolverParam SceNetResolverParam
typedef struct SceNetLinger SceNetLinger
typedef struct SceNetSockaddr SceNetSockaddr
typedef struct SceNetIovec SceNetIovec
typedef struct SceNetMsghdr SceNetMsghdr
typedef struct SceNetSockInfo SceNetSockInfo
typedef struct SceNetStatisticsInfo SceNetStatisticsInfo
typedef struct
SceNetIpHeaderIpVerHl 
SceNetIpHeaderIpVerHl
typedef union SceNetIpHeaderUnion SceNetIpHeaderUnion
typedef struct SceNetIpHeader SceNetIpHeader
typedef struct SceNetIcmpHeaderEcho SceNetIcmpHeaderEcho
typedef struct SceNetIcmpHeaderFrag SceNetIcmpHeaderFrag
typedef union SceNetIcmpHeaderUnion SceNetIcmpHeaderUnion
typedef struct SceNetIcmpHeader SceNetIcmpHeader

Enumerations

enum  {
  PSP2_NET_ERROR_EPERM = 0x80410101, PSP2_NET_ERROR_ENOENT = 0x80410102, PSP2_NET_ERROR_ESRCH = 0x80410103, PSP2_NET_ERROR_EINTR = 0x80410104,
  PSP2_NET_ERROR_EIO = 0x80410105, PSP2_NET_ERROR_ENXIO = 0x80410106, PSP2_NET_ERROR_E2BIG = 0x80410107, PSP2_NET_ERROR_ENOEXEC = 0x80410108,
  PSP2_NET_ERROR_EBADF = 0x80410109, PSP2_NET_ERROR_ECHILD = 0x8041010A, PSP2_NET_ERROR_EDEADLK = 0x8041010B, PSP2_NET_ERROR_ENOMEM = 0x8041010C,
  PSP2_NET_ERROR_EACCES = 0x8041010D, PSP2_NET_ERROR_EFAULT = 0x8041010E, PSP2_NET_ERROR_ENOTBLK = 0x8041010F, PSP2_NET_ERROR_EBUSY = 0x80410110,
  PSP2_NET_ERROR_EEXIST = 0x80410111, PSP2_NET_ERROR_EXDEV = 0x80410112, PSP2_NET_ERROR_ENODEV = 0x80410113, PSP2_NET_ERROR_ENOTDIR = 0x80410114,
  PSP2_NET_ERROR_EISDIR = 0x80410115, PSP2_NET_ERROR_EINVAL = 0x80410116, PSP2_NET_ERROR_ENFILE = 0x80410117, PSP2_NET_ERROR_EMFILE = 0x80410118,
  PSP2_NET_ERROR_ENOTTY = 0x80410119, PSP2_NET_ERROR_ETXTBSY = 0x8041011A, PSP2_NET_ERROR_EFBIG = 0x8041011B, PSP2_NET_ERROR_ENOSPC = 0x8041011C,
  PSP2_NET_ERROR_ESPIPE = 0x8041011D, PSP2_NET_ERROR_EROFS = 0x8041011E, PSP2_NET_ERROR_EMLINK = 0x8041011F, PSP2_NET_ERROR_EPIPE = 0x80410120,
  PSP2_NET_ERROR_EDOM = 0x80410121, PSP2_NET_ERROR_ERANGE = 0x80410122, PSP2_NET_ERROR_EAGAIN = 0x80410123, PSP2_NET_ERROR_EWOULDBLOCK = 0x80410123,
  PSP2_NET_ERROR_EINPROGRESS = 0x80410124, PSP2_NET_ERROR_EALREADY = 0x80410125, PSP2_NET_ERROR_ENOTSOCK = 0x80410126, PSP2_NET_ERROR_EDESTADDRREQ = 0x80410127,
  PSP2_NET_ERROR_EMSGSIZE = 0x80410128, PSP2_NET_ERROR_EPROTOTYPE = 0x80410129, PSP2_NET_ERROR_ENOPROTOOPT = 0x8041012A, PSP2_NET_ERROR_EPROTONOSUPPORT = 0x8041012B,
  PSP2_NET_ERROR_ESOCKTNOSUPPOR = 0x8041012C, PSP2_NET_ERROR_EOPNOTSUPP = 0x8041012D, PSP2_NET_ERROR_EPFNOSUPPORT = 0x8041012E, PSP2_NET_ERROR_EAFNOSUPPORT = 0x8041012F,
  PSP2_NET_ERROR_EADDRINUSE = 0x80410130, PSP2_NET_ERROR_EADDRNOTAVAIL = 0x80410131, PSP2_NET_ERROR_ENETDOWN = 0x80410132, PSP2_NET_ERROR_ENETUNREACH = 0x80410133,
  PSP2_NET_ERROR_ENETRESET = 0x80410134, PSP2_NET_ERROR_ECONNABORTED = 0x80410135, PSP2_NET_ERROR_ECONNRESET = 0x80410136, PSP2_NET_ERROR_ENOBUFS = 0x80410137,
  PSP2_NET_ERROR_EISCONN = 0x80410138, PSP2_NET_ERROR_ENOTCONN = 0x80410139, PSP2_NET_ERROR_ESHUTDOWN = 0x8041013A, PSP2_NET_ERROR_ETOOMANYREFS = 0x8041013B,
  PSP2_NET_ERROR_ETIMEDOUT = 0x8041013C, PSP2_NET_ERROR_ECONNREFUSED = 0x8041013D, PSP2_NET_ERROR_ELOOP = 0x8041013E, PSP2_NET_ERROR_ENAMETOOLONG = 0x8041013F,
  PSP2_NET_ERROR_EHOSTDOWN = 0x80410140, PSP2_NET_ERROR_EHOSTUNREACH = 0x80410141, PSP2_NET_ERROR_ENOTEMPTY = 0x80410142, PSP2_NET_ERROR_EPROCLIM = 0x80410143,
  PSP2_NET_ERROR_EUSERS = 0x80410144, PSP2_NET_ERROR_EDQUOT = 0x80410145, PSP2_NET_ERROR_ESTALE = 0x80410146, PSP2_NET_ERROR_EREMOTE = 0x80410147,
  PSP2_NET_ERROR_EBADRPC = 0x80410148, PSP2_NET_ERROR_ERPCMISMATCH = 0x80410149, PSP2_NET_ERROR_EPROGUNAVAIL = 0x8041014A, PSP2_NET_ERROR_EPROGMISMATCH = 0x8041014B,
  PSP2_NET_ERROR_EPROCUNAVAIL = 0x8041014C, PSP2_NET_ERROR_ENOLCK = 0x8041014D, PSP2_NET_ERROR_ENOSYS = 0x8041014E, PSP2_NET_ERROR_EFTYPE = 0x8041014F,
  PSP2_NET_ERROR_EAUTH = 0x80410150, PSP2_NET_ERROR_ENEEDAUTH = 0x80410151, PSP2_NET_ERROR_EIDRM = 0x80410152, PSP2_NET_ERROR_ENOMS = 0x80410153,
  PSP2_NET_ERROR_EOVERFLOW = 0x80410154, PSP2_NET_ERROR_EILSEQ = 0x80410155, PSP2_NET_ERROR_ENOTSUP = 0x80410156, PSP2_NET_ERROR_ECANCELED = 0x80410157,
  PSP2_NET_ERROR_EBADMSG = 0x80410158, PSP2_NET_ERROR_ENODATA = 0x80410159, PSP2_NET_ERROR_ENOSR = 0x8041015A, PSP2_NET_ERROR_ENOSTR = 0x8041015B,
  PSP2_NET_ERROR_ETIME = 0x8041015C, PSP2_NET_ERROR_EADHOC = 0x804101A0, PSP2_NET_ERROR_EDISABLEDIF = 0x804101A1, PSP2_NET_ERROR_ERESUME = 0x804101A2,
  PSP2_NET_ERROR_ENOTINIT = 0x804101C8, PSP2_NET_ERROR_ENOLIBMEM = 0x804101C9, PSP2_NET_ERROR_ERESERVED202 = 0x804101CA, PSP2_NET_ERROR_ECALLBACK = 0x804101CB,
  PSP2_NET_ERROR_EINTERNAL = 0x804101CC, PSP2_NET_ERROR_ERETURN = 0x804101CD, PSP2_NET_ERROR_RESOLVER_EINTERNAL = 0x804101DC, PSP2_NET_ERROR_RESOLVER_EBUSY = 0x804101DD,
  PSP2_NET_ERROR_RESOLVER_ENOSPACE = 0x804101DE, PSP2_NET_ERROR_RESOLVER_EPACKET = 0x804101DF, PSP2_NET_ERROR_RESOLVER_ERESERVED22 = 0x804101E0, PSP2_NET_ERROR_RESOLVER_ENODNS = 0x804101E1,
  PSP2_NET_ERROR_RESOLVER_ETIMEDOUT = 0x804101E2, PSP2_NET_ERROR_RESOLVER_ENOSUPPORT = 0x804101E3, PSP2_NET_ERROR_RESOLVER_EFORMAT = 0x804101E4, PSP2_NET_ERROR_RESOLVER_ESERVERFAILURE = 0x804101E5,
  PSP2_NET_ERROR_RESOLVER_ENOHOST = 0x804101E6, PSP2_NET_ERROR_RESOLVER_ENOTIMPLEMENTED = 0x804101E7, PSP2_NET_ERROR_RESOLVER_ESERVERREFUSED = 0x804101E8, PSP2_NET_ERROR_RESOLVER_ENORECORD = 0x804101E9,
  PSP2_NET_ERROR_RESOLVER_EALIGNMENT = 0x804101EA
}
enum  {
  PSP2_NET_EPERM = 1, PSP2_NET_ENOENT = 2, PSP2_NET_ESRCH = 3, PSP2_NET_EINTR = 4,
  PSP2_NET_EIO = 5, PSP2_NET_ENXIO = 6, PSP2_NET_E2BIG = 7, PSP2_NET_ENOEXEC = 8,
  PSP2_NET_EBADF = 9, PSP2_NET_ECHILD = 10, PSP2_NET_EDEADLK = 11, PSP2_NET_ENOMEM = 12,
  PSP2_NET_EACCES = 13, PSP2_NET_EFAULT = 14, PSP2_NET_ENOTBLK = 15, PSP2_NET_EBUSY = 16,
  PSP2_NET_EEXIST = 17, PSP2_NET_EXDEV = 18, PSP2_NET_ENODEV = 19, PSP2_NET_ENOTDIR = 20,
  PSP2_NET_EISDIR = 21, PSP2_NET_EINVAL = 22, PSP2_NET_ENFILE = 23, PSP2_NET_EMFILE = 24,
  PSP2_NET_ENOTTY = 25, PSP2_NET_ETXTBSY = 26, PSP2_NET_EFBIG = 27, PSP2_NET_ENOSPC = 28,
  PSP2_NET_ESPIPE = 29, PSP2_NET_EROFS = 30, PSP2_NET_EMLINK = 31, PSP2_NET_EPIPE = 32,
  PSP2_NET_EDOM = 33, PSP2_NET_ERANGE = 34, PSP2_NET_EAGAIN = 35, PSP2_NET_EWOULDBLOCK = 35,
  PSP2_NET_EINPROGRESS = 36, PSP2_NET_EALREADY = 37, PSP2_NET_ENOTSOCK = 38, PSP2_NET_EDESTADDRREQ = 39,
  PSP2_NET_EMSGSIZE = 40, PSP2_NET_EPROTOTYPE = 41, PSP2_NET_ENOPROTOOPT = 42, PSP2_NET_EPROTONOSUPPORT = 43,
  PSP2_NET_ESOCKTNOSUPPORT = 44, PSP2_NET_EOPNOTSUPP = 45, PSP2_NET_EPFNOSUPPORT = 46, PSP2_NET_EAFNOSUPPORT = 47,
  PSP2_NET_EADDRINUSE = 48, PSP2_NET_EADDRNOTAVAIL = 49, PSP2_NET_ENETDOWN = 50, PSP2_NET_ENETUNREACH = 51,
  PSP2_NET_ENETRESET = 52, PSP2_NET_ECONNABORTED = 53, PSP2_NET_ECONNRESET = 54, PSP2_NET_ENOBUFS = 55,
  PSP2_NET_EISCONN = 56, PSP2_NET_ENOTCONN = 57, PSP2_NET_ESHUTDOWN = 58, PSP2_NET_ETOOMANYREFS = 59,
  PSP2_NET_ETIMEDOUT = 60, PSP2_NET_ECONNREFUSED = 61, PSP2_NET_ELOOP = 62, PSP2_NET_ENAMETOOLONG = 63,
  PSP2_NET_EHOSTDOWN = 64, PSP2_NET_EHOSTUNREACH = 65, PSP2_NET_ENOTEMPTY = 66, PSP2_NET_EPROCLIM = 67,
  PSP2_NET_EUSERS = 68, PSP2_NET_EDQUOT = 69, PSP2_NET_ESTALE = 70, PSP2_NET_EREMOTE = 71,
  PSP2_NET_EBADRPC = 72, PSP2_NET_ERPCMISMATCH = 73, PSP2_NET_EPROGUNAVAIL = 74, PSP2_NET_EPROGMISMATCH = 75,
  PSP2_NET_EPROCUNAVAIL = 76, PSP2_NET_ENOLCK = 77, PSP2_NET_ENOSYS = 78, PSP2_NET_EFTYPE = 79,
  PSP2_NET_EAUTH = 80, PSP2_NET_ENEEDAUTH = 81, PSP2_NET_EIDRM = 82, PSP2_NET_ENOMSG = 83,
  PSP2_NET_EOVERFLOW = 84, PSP2_NET_EILSEQ = 85, PSP2_NET_ENOTSUP = 86, PSP2_NET_ECANCELED = 87,
  PSP2_NET_EBADMSG = 88, PSP2_NET_ENODATA = 89, PSP2_NET_ENOSR = 90, PSP2_NET_ENOSTR = 91,
  PSP2_NET_ETIME = 92, PSP2_NET_EADHOC = 160, PSP2_NET_EDISABLEDIF = 161, PSP2_NET_ERESUME = 162
}
enum  {
  PSP2_NET_ENOTINIT = 200, PSP2_NET_ENOLIBMEM, PSP2_NET_ETLS, PSP2_NET_ECALLBACK,
  PSP2_NET_EINTERNAL, PSP2_NET_ERETURN
}
enum  {
  PSP2_NET_RESOLVER_EINTERNAL = 220, PSP2_NET_RESOLVER_EBUSY, PSP2_NET_RESOLVER_ENOSPACE, PSP2_NET_RESOLVER_EPACKET,
  PSP2_NET_RESOLVER_ERESERVED224, PSP2_NET_RESOLVER_ENODNS, PSP2_NET_RESOLVER_ETIMEDOUT, PSP2_NET_RESOLVER_ENOSUPPORT,
  PSP2_NET_RESOLVER_EFORMAT, PSP2_NET_RESOLVER_ESERVERFAILURE, PSP2_NET_RESOLVER_ENOHOST, PSP2_NET_RESOLVER_ENOTIMPLEMENTED,
  PSP2_NET_RESOLVER_ESERVERREFUSED, PSP2_NET_RESOLVER_ENORECORD, PSP2_NET_RESOLVER_EALIGNMENT
}
enum  { PSP2_NET_DUMP_PEEK = 0x00000010, PSP2_NET_DUMP_DONTWAIT = 0x00000020, PSP2_NET_DUMP_OVERFLOW = 0x00000040, PSP2_NET_DUMP_ABORT_FLAG_PRESERVATION = 0x00000001 }
enum  {
  PSP2_NET_EPOLLIN = 0x00000001, PSP2_NET_EPOLLOUT = 0x00000002, PSP2_NET_EPOLLERR = 0x00000008, PSP2_NET_EPOLLHUP = 0x00000010,
  PSP2_NET_EPOLLDESCID = 0x00010000
}
enum  { PSP2_NET_EPOLL_CTL_ADD = 1, PSP2_NET_EPOLL_CTL_MOD, PSP2_NET_EPOLL_CTL_DEL }
enum  {
  PSP2_NET_SOCKINFO_STATE_UNKNOWN, PSP2_NET_SOCKINFO_STATE_CLOSED, PSP2_NET_SOCKINFO_STATE_OPENED, PSP2_NET_SOCKINFO_STATE_LISTEN,
  PSP2_NET_SOCKINFO_STATE_SYN_SENT, PSP2_NET_SOCKINFO_STATE_SYN_RECEIVED, PSP2_NET_SOCKINFO_STATE_ESTABLISHED, PSP2_NET_SOCKINFO_STATE_FIN_WAIT_1,
  PSP2_NET_SOCKINFO_STATE_FIN_WAIT_2, PSP2_NET_SOCKINFO_STATE_CLOSE_WAIT, PSP2_NET_SOCKINFO_STATE_CLOSING, PSP2_NET_SOCKINFO_STATE_LAST_ACK,
  PSP2_NET_SOCKINFO_STATE_TIME_WAIT
}
enum  {
  PSP2_NET_SOCKINFO_F_SELF = 0x00000001, PSP2_NET_SOCKINFO_F_KERNEL = 0x00000002, PSP2_NET_SOCKINFO_F_OTHERS = 0x00000004, PSP2_NET_SOCKINFO_F_RECV_WAIT = 0x00010000,
  PSP2_NET_SOCKINFO_F_SEND_WAIT = 0x00020000, PSP2_NET_SOCKINFO_F_RECV_EWAIT = 0x00040000, PSP2_NET_SOCKINFO_F_SEND_EWAIT = 0x00080000, PSP2_NET_SOCKINFO_F_WAKEUP_SIGNAL = 0x00100000,
  PSP2_NET_SOCKINFO_F_ALL = 0x001F0007
}
enum  { PSP2_NET_EMULATION_FLAG_ETH0 = 1, PSP2_NET_EMULATION_FLAG_WLAN0 }
enum  { PSP2_NET_RESOLVER_ASYNC = 0x00000001, PSP2_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS = 0x00010000 }
enum  { PSP2_NET_RESOLVER_ABORT_FLAG_NTOA_PRESERVATION = 0x00000001, PSP2_NET_RESOLVER_ABORT_FLAG_ATON_PRESERVATION = 0x00000002 }
enum  { PSP2_NET_SOCKET_ABORT_FLAG_RCV_PRESERVATION = 0x00000001, PSP2_NET_SOCKET_ABORT_FLAG_SND_PRESERVATION = 0x00000002 }
enum  {
  PSP2_NET_IPPROTO_IP = 0, PSP2_NET_IPPROTO_ICMP = 1, PSP2_NET_IPPROTO_IGMP = 2, PSP2_NET_IPPROTO_TCP = 6,
  PSP2_NET_IPPROTO_UDP = 17, PSP2_NET_SOL_SOCKET = 0xffff
}
enum  {
  PSP2_NET_IP_HDRINCL = 2, PSP2_NET_IP_TOS = 3, PSP2_NET_IP_TTL = 4, PSP2_NET_IP_MULTICAST_IF = 9,
  PSP2_NET_IP_MULTICAST_TTL = 10, PSP2_NET_IP_MULTICAST_LOOP = 11, PSP2_NET_IP_ADD_MEMBERSHIP = 12, PSP2_NET_IP_DROP_MEMBERSHIP = 13,
  PSP2_NET_IP_TTLCHK = 23, PSP2_NET_IP_MAXTTL = 24, PSP2_NET_TCP_NODELAY = 1, PSP2_NET_TCP_MAXSEG = 2,
  PSP2_NET_TCP_MSS_TO_ADVERTISE = 3, PSP2_NET_SO_REUSEADDR = 0x00000004, PSP2_NET_SO_KEEPALIVE = 0x00000008, PSP2_NET_SO_BROADCAST = 0x00000020,
  PSP2_NET_SO_LINGER = 0x00000080, PSP2_NET_SO_OOBINLINE = 0x00000100, PSP2_NET_SO_REUSEPORT = 0x00000200, PSP2_NET_SO_ONESBCAST = 0x00000800,
  PSP2_NET_SO_USECRYPTO = 0x00001000, PSP2_NET_SO_USESIGNATURE = 0x00002000, PSP2_NET_SO_SNDBUF = 0x1001, PSP2_NET_SO_RCVBUF = 0x1002,
  PSP2_NET_SO_SNDLOWAT = 0x1003, PSP2_NET_SO_RCVLOWAT = 0x1004, PSP2_NET_SO_SNDTIMEO = 0x1005, PSP2_NET_SO_RCVTIMEO = 0x1006,
  PSP2_NET_SO_ERROR = 0x1007, PSP2_NET_SO_TYPE = 0x1008, PSP2_NET_SO_NBIO = 0x1100, PSP2_NET_SO_TPPOLICY = 0x1101,
  PSP2_NET_SO_NAME = 0x1102
}
enum  {
  PSP2_NET_SOCK_STREAM = 1, PSP2_NET_SOCK_DGRAM = 2, PSP2_NET_SOCK_RAW = 3, PSP2_NET_SOCK_DGRAM_P2P = 6,
  PSP2_NET_SOCK_STREAM_P2P = 10
}
enum  {
  PSP2_NET_MSG_PEEK = 0x00000002, PSP2_NET_MSG_WAITALL = 0x00000040, PSP2_NET_MSG_DONTWAIT = 0x00000080, PSP2_NET_MSG_USECRYPTO = 0x00000400,
  PSP2_NET_MSG_USESIGNATURE = 0x00000800
}
enum  { PSP2_NET_SHUT_RD, PSP2_NET_SHUT_WR, PSP2_NET_SHUT_RDWR }
enum  {
  PSP2_NET_ICMP_TYPE_ECHO_REPLY = 0, PSP2_NET_ICMP_TYPE_DEST_UNREACH = 3, PSP2_NET_ICMP_TYPE_SOURCE_QUENCH = 4, PSP2_NET_ICMP_TYPE_REDIRECT = 5,
  PSP2_NET_ICMP_TYPE_ECHO_REQUEST = 8, PSP2_NET_ICMP_TYPE_TIME_EXCEEDED = 11, PSP2_NET_ICMP_TYPE_PARAMETER_PROBLEM = 12, PSP2_NET_ICMP_TYPE_TIMESTAMP_REQUEST = 13,
  PSP2_NET_ICMP_TYPE_TIMESTAMP_REPLY = 14, PSP2_NET_ICMP_TYPE_INFORMATION_REQUEST = 15, PSP2_NET_ICMP_TYPE_INFORMATION_REPLY = 16, PSP2_NET_ICMP_TYPE_ADDRESS_MASK_REQUEST = 17,
  PSP2_NET_ICMP_TYPE_ADDRESS_MASK_REPLY = 18
}
enum  {
  PSP2_NET_ICMP_CODE_DEST_UNREACH_NET_UNREACH = 0, PSP2_NET_ICMP_CODE_DEST_UNREACH_HOST_UNREACH = 1, PSP2_NET_ICMP_CODE_DEST_UNREACH_PROTO_UNREACH = 2, PSP2_NET_ICMP_CODE_DEST_UNREACH_PORT_UNREACH = 3,
  PSP2_NET_ICMP_CODE_DEST_UNREACH_FRAG_AND_DF = 4, PSP2_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_FAILED = 5, PSP2_NET_ICMP_CODE_DEST_UNREACH_DST_NET_UNKNOWN = 6, PSP2_NET_ICMP_CODE_DEST_UNREACH_DST_HOST_UNKNOWN = 7,
  PSP2_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_ISOLATED = 8, PSP2_NET_ICMP_CODE_DEST_UNREACH_NET_ADMIN_PROHIBITED = 9, PSP2_NET_ICMP_CODE_DEST_UNREACH_NET_HOST_PROHIBITED = 10, PSP2_NET_ICMP_CODE_DEST_UNREACH_NET_TOS = 11,
  PSP2_NET_ICMP_CODE_DEST_UNREACH_HOST_TOS = 12, PSP2_NET_ICMP_CODE_TIME_EXCEEDED_TTL_EXCEEDED = 0, PSP2_NET_ICMP_CODE_TIME_EXCEEDED_FRT_EXCEEDED = 1
}

Functions

int sceNetInit (SceNetInitParam *param)
int sceNetTerm (void)
int sceNetShowIfconfig (void *p, int b)
int sceNetShowRoute (void)
int sceNetShowNetstat (void)
int sceNetEmulationSet (SceNetEmulationParam *param, int flags)
int sceNetEmulationGet (SceNetEmulationParam *param, int flags)
int sceNetResolverCreate (const char *name, SceNetResolverParam *param, int flags)
int sceNetResolverStartNtoa (int rid, const char *hostname, SceNetInAddr *addr, int timeout, int retry, int flags)
int sceNetResolverStartAton (int rid, const SceNetInAddr *addr, char *hostname, int len, int timeout, int retry, int flags)
int sceNetResolverGetError (int rid, int *result)
int sceNetResolverDestroy (int rid)
int sceNetResolverAbort (int rid, int flags)
int sceNetDumpCreate (const char *name, int len, int flags)
int sceNetDumpRead (int id, void *buf, int len, int *pflags)
int sceNetDumpDestroy (int id)
int sceNetDumpAbort (int id, int flags)
int sceNetEpollCreate (const char *name, int flags)
int sceNetEpollControl (int eid, int op, int id, SceNetEpollEvent *event)
int sceNetEpollWait (int eid, SceNetEpollEvent *events, int maxevents, int timeout)
int sceNetEpollWaitCB (int eid, SceNetEpollEvent *events, int maxevents, int timeout)
int sceNetEpollDestroy (int eid)
int sceNetEpollAbort (int eid, int flags)
int sceNetEtherStrton (const char *str, SceNetEtherAddr *n)
int sceNetEtherNtostr (const SceNetEtherAddr *n, char *str, unsigned int len)
int sceNetGetMacAddress (SceNetEtherAddr *addr, int flags)
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 sceNetGetpeername (int s, SceNetSockaddr *name, unsigned int *namelen)
int sceNetGetsockname (int s, SceNetSockaddr *name, unsigned int *namelen)
int sceNetGetsockopt (int s, int level, int optname, void *optval, unsigned int *optlen)
int sceNetListen (int s, int backlog)
int sceNetRecv (int s, void *buf, unsigned int len, int flags)
int sceNetRecvfrom (int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen)
int sceNetRecvmsg (int s, SceNetMsghdr *msg, int flags)
int sceNetSend (int s, const void *msg, unsigned int len, int flags)
int sceNetSendto (int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen)
int sceNetSendmsg (int s, const SceNetMsghdr *msg, int flags)
int sceNetSetsockopt (int s, int level, int optname, const void *optval, unsigned int optlen)
int sceNetShutdown (int s, int how)
int sceNetSocketClose (int s)
int sceNetSocketAbort (int s, int flags)
int sceNetGetSockInfo (int s, SceNetSockInfo *info, int n, int flags)
int sceNetGetSockIdInfo (SceNetFdSet *fds, int sockinfoflags, int flags)
int sceNetGetStatisticsInfo (SceNetStatisticsInfo *info, int flags)
int sceNetSetDnsInfo (SceNetDnsInfo *info, int flags)
int sceNetClearDnsCache (int flags)
const char * sceNetInetNtop (int af, const void *src, char *dst, unsigned int size)
int sceNetInetPton (int af, const char *src, void *dst)
long long unsigned int sceNetHtonll (unsigned long long int host64)
unsigned int sceNetHtonl (unsigned int host32)
unsigned short int sceNetHtons (unsigned short int host16)
unsigned long long int sceNetNtohll (unsigned long long int net64)
unsigned int sceNetNtohl (unsigned int net32)
unsigned short int sceNetNtohs (unsigned short int net16)

Detailed Description

Header file related to net.

Copyright (C) 2015 PSP2SDK Project

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


Enumeration Type Documentation

anonymous enum

Net Error Codes

anonymous enum

Specific kernel and libnet error codes

anonymous enum

libnet specific error codes

anonymous enum

Resolver specific error codes

anonymous enum

Flags to specify as argument to sceNetDumpRead()

anonymous enum

Events for SceNetEpollEvent

anonymous enum

Flags to specify as argument to sceNetEpollControl()

anonymous enum

state for SceNetSockInfo structure

anonymous enum

flags for SceNetSockInfo structure

anonymous enum

Flags to specify as argument to sceNetEmulationGet() / sceNetEmulationSet()

anonymous enum

Flags to specify as argument to sceNetResolverStartNtoa() / sceNetResolverStartAton()

anonymous enum

Flags to specify as argument to sceNetResolverAbort()

anonymous enum

Flags to specify as argument to sceNetSocketAbort()

anonymous enum

Net Protocols

anonymous enum

Socket Options

anonymous enum

Socket types

anonymous enum

MSG Flags

anonymous enum

Flags to specify as argument to sceNetShutdown()

anonymous enum

Types to specify to SceNetIcmpHeader structure

anonymous enum

Codes to specify to SceNetIcmpHeader structure

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines