DetPhysDocs日本語

detphys_link.hconnection interface and room codes (version 1)

The layer that finds the other player and connects (8. Transports and room codes). It gives you a detphys_transport to pass to the session.

FunctionDescription
detphys_room_code_makeMakes a room code (six digits) from a seed
detphys_room_code_parseChecks typed text and normalizes it to six digits (skips full-width digits and separators; format error / check digit error)Usage: Transports and room codes › Room codes
StructDescription

Constants: results DETPHYS_LINK_OK, DETPHYS_LINK_E_* (ARGUMENT, UNSUPPORTED, STATE, CODE_FORMAT, CODE_CHECK, TOO_LARGE, NOT_READY, BACKEND, MEMORY); states DETPHYS_LINK_STATE_* (IDLE, OPENING, WAITING, CONNECTED, CLOSED, FAILED); roles DETPHYS_LINK_ROLE_* (HOST = 0, GUEST = 1, UNKNOWN); paths DETPHYS_LINK_PATH_* (UNKNOWN, DIRECT, RELAYED, LOCAL); reasons DETPHYS_LINK_REASON_*; room codes DETPHYS_ROOM_CODE_DIGITS (6), DETPHYS_ROOM_CODE_SIZE (8).

↑↓ to choose, Enter to open, Esc to close