mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
update to latest vita-headers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package net
|
||||
|
||||
import "core:c"
|
||||
import sce "../common"
|
||||
|
||||
/** Resolver specific error codes */
|
||||
SceNetResolverErrorCode :: enum c.int {
|
||||
@@ -549,6 +550,40 @@ SceNetIcmpCode :: enum c.int {
|
||||
TIME_EXCEEDED_FRT_EXCEEDED = 1
|
||||
}
|
||||
|
||||
SceNetAdhocMatchingErrorCode :: enum {
|
||||
INVALID_MODE = 0x80413101,
|
||||
INVALID_PORT = 0x80413102,
|
||||
INVALID_MAXNUM = 0x80413103,
|
||||
RXBUF_TOO_SHORT = 0x80413104,
|
||||
INVALID_OPTLEN = 0x80413105,
|
||||
INVALID_ARG = 0x80413106,
|
||||
INVALID_ID = 0x80413107,
|
||||
ID_NOT_AVAIL = 0x80413108,
|
||||
NO_SPACE = 0x80413109,
|
||||
IS_RUNNING = 0x8041310a,
|
||||
NOT_RUNNING = 0x8041310b,
|
||||
UNKNOWN_TARGET = 0x8041310c,
|
||||
TARGET_NOT_READY = 0x8041310d,
|
||||
EXCEED_MAXNUM = 0x8041310e,
|
||||
REQUEST_IN_PROGRESS = 0x8041310f,
|
||||
ALREADY_ESTABLISHED = 0x80413110,
|
||||
BUSY = 0x80413111,
|
||||
ALREADY_INITIALIZED = 0x80413112,
|
||||
NOT_INITIALIZED = 0x80413113,
|
||||
PORT_IN_USE = 0x80413114,
|
||||
STACKSIZE_TOO_SHORT = 0x80413115,
|
||||
INVALID_DATALEN = 0x80413116,
|
||||
NOT_ESTABLISHED = 0x80413117,
|
||||
DATA_BUSY = 0x80413118,
|
||||
INVALID_ALIGNMENT = 0x80413119
|
||||
}
|
||||
|
||||
SceNetAdhocMatchingMode :: enum {
|
||||
PARENT = 1,
|
||||
CHILD,
|
||||
P2P,
|
||||
}
|
||||
|
||||
SCE_NET_IP_DEFAULT_MULTICAST_TTL :: 1
|
||||
SCE_NET_IP_DEFAULT_MULTICAST_LOOP :: 1
|
||||
|
||||
@@ -577,6 +612,17 @@ SCE_NET_DEBUG_NAME_LEN_MAX :: 31
|
||||
SCE_NET_ID_SOCKET_MIN :: 0
|
||||
SCE_NET_ID_SOCKET_MAX :: 1023
|
||||
|
||||
SceNetAdhocMatchingCallback :: #type proc "c" (
|
||||
id: c.int,
|
||||
type: c.int,
|
||||
addr: ^SceNetInAddr,
|
||||
opt_len: sce.Size,
|
||||
opt: rawptr)
|
||||
|
||||
SceNetAdhocMatchingMember :: struct {
|
||||
addr: SceNetInAddr,
|
||||
}
|
||||
|
||||
SceNetFdSet :: struct {
|
||||
bits: [32]c.uint,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user