detphys_eos.hEOS P2P transport (version 2)
A connection interface over Epic Online Services P2P. It is in a separate library, detphys_eos (Windows and Android; it loads the EOS SDK, which comes from Epic). For usage and the Android / iOS setup, see "EOS P2P" in 8. Transports and room codes.
| Function | Description |
|---|---|
detphys_eos_abi_version | Version of this header (DETPHYS_) |
detphys_eos_sdk_version | Version string of the loaded EOS SDK (to check where the SDK is and that it links) |
detphys_eos_desc_default | Default settingsUsage: Transports and room codes › EOS P2P |
detphys_eos_link_create | Creates an EOS transport (detphys_link). The first one initializes EOS and starts logging in with a device ID (the login continues inside detphys_, so you can call detphys_ / detphys_ without waiting). One at a time per processUsage: Transports and room codes › Transports that come with DetPhys |
detphys_eos_last_error | Why the last detphys_ failed ("" if it did not)Usage: Transports and room codes › EOS P2P |
detphys_eos_shutdown | Shuts EOS down. Call it once at the end of the process (if a transport still exists it does nothing and returns DETPHYS_; afterwards no more EOS transports can be created in the same process)Usage: Transports and room codes › EOS P2P |
| Struct | Description |
|---|---|
detphys_eos_desc | Developer portal values (product ID, sandbox ID, deployment ID, client ID and client secret), product name and version, the name used to log in, cache folder, socket name, login timeout, log level, relay mode, flagsUsage: Transports and room codes › EOS P2P |
Constants: datagram limit DETPHYS_ (1170); relay modes DETPHYS_ (ALLOW = default, FORCE, NEVER); flags DETPHYS_ (for the second process when testing two players on one machine; do not use it in a game).