|
GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
|
#include "gekkonet.h"#include "session/game_session.h"#include "session/replay_session.h"#include "session/spectator_session.h"#include "session/stress_session.h"#include "asio/asio.hpp"#include <cstring>#include <iostream>
Go to the source code of this file.
Macros | |
| #define | ASIO_STANDALONE |
Functions | |
| GEKKONET_API bool | gekko_create (GekkoSession **session, GekkoSessionType session_type) |
| bool | gekko_destroy (GekkoSession **session) |
| void | gekko_start (GekkoSession *session, GekkoConfig *config) |
| void | gekko_net_adapter_set (GekkoSession *session, GekkoNetAdapter *adapter) |
| int | gekko_add_actor (GekkoSession *session, GekkoPlayerType player_type, GekkoNetAddress *addr) |
| bool | gekko_disconnect_actor (GekkoSession *session, int actor) |
| void | gekko_set_disconnect_timeout (GekkoSession *session, unsigned int timeout) |
| void | gekko_set_local_delay (GekkoSession *session, int player, unsigned char delay) |
| void | gekko_set_runahead (GekkoSession *session, unsigned char runahead) |
| void | gekko_set_input_prediction_window (GekkoSession *session, unsigned char window) |
| void | gekko_add_local_input (GekkoSession *session, int player, void *input) |
| GekkoGameEvent ** | gekko_update_session (GekkoSession *session, int *count) |
| GekkoSessionEvent ** | gekko_session_events (GekkoSession *session, int *count) |
| float | gekko_frames_ahead (GekkoSession *session) |
| int | gekko_spectator_buffered_frames (GekkoSession *session) |
| void | gekko_network_stats (GekkoSession *session, int player, GekkoNetworkStats *stats) |
| void | gekko_rollback_stats (GekkoSession *session, GekkoRollbackStats *stats) |
| void | gekko_network_poll (GekkoSession *session) |
| bool | gekko_start_recording (GekkoSession *session, bool save_initial_state, bool disable_compression) |
| const unsigned char * | gekko_stop_recording (GekkoSession *session, unsigned int *length) |
| const unsigned char * | gekko_peek_recording (GekkoSession *session, unsigned int *length) |
| bool | gekko_record_checksums (GekkoSession *session, unsigned int interval) |
| bool | gekko_set_replay_user_data (GekkoSession *session, const void *data, unsigned int length) |
| bool | gekko_load_replay (GekkoSession *session, const unsigned char *replay_data, unsigned int length) |
| const unsigned char * | gekko_replay_user_data (GekkoSession *session, unsigned int *length) |
| static asio::ip::udp::endpoint | STOE (const std::string &str) |
| static void | asio_send (GekkoNetAddress *addr, const char *data, int length) |
| static GekkoNetResult ** | asio_receive (int *length) |
| static void | asio_free (void *data_ptr) |
| GekkoNetAdapter * | gekko_default_adapter (unsigned short port) |
| bool | gekko_default_adapter_destroy () |
Variables | |
| static char | _buffer [65536] |
| static asio::error_code | _ec |
| static asio::io_context | _io_ctx |
| static asio::ip::udp::endpoint | _remote |
| static std::vector< GekkoNetResult * > | _results |
| static asio::ip::udp::socket * | _socket = nullptr |
| static GekkoNetAdapter | default_sock |
| #define ASIO_STANDALONE |
Definition at line 196 of file gekkonet.cpp.
|
static |
Definition at line 278 of file gekkonet.cpp.
|
static |
Definition at line 244 of file gekkonet.cpp.
|
static |
| int gekko_add_actor | ( | GekkoSession * | session, |
| GekkoPlayerType | player_type, | ||
| GekkoNetAddress * | addr ) |
| void gekko_add_local_input | ( | GekkoSession * | session, |
| int | player, | ||
| void * | input ) |
| GEKKONET_API bool gekko_create | ( | GekkoSession ** | session, |
| GekkoSessionType | session_type ) |
Definition at line 8 of file gekkonet.cpp.
| GekkoNetAdapter * gekko_default_adapter | ( | unsigned short | port | ) |
Definition at line 288 of file gekkonet.cpp.
| bool gekko_default_adapter_destroy | ( | ) |
Definition at line 322 of file gekkonet.cpp.
| bool gekko_destroy | ( | GekkoSession ** | session | ) |
Definition at line 38 of file gekkonet.cpp.
| bool gekko_disconnect_actor | ( | GekkoSession * | session, |
| int | actor ) |
| float gekko_frames_ahead | ( | GekkoSession * | session | ) |
| bool gekko_load_replay | ( | GekkoSession * | session, |
| const unsigned char * | replay_data, | ||
| unsigned int | length ) |
| void gekko_net_adapter_set | ( | GekkoSession * | session, |
| GekkoNetAdapter * | adapter ) |
| void gekko_network_poll | ( | GekkoSession * | session | ) |
| void gekko_network_stats | ( | GekkoSession * | session, |
| int | player, | ||
| GekkoNetworkStats * | stats ) |
| const unsigned char * gekko_peek_recording | ( | GekkoSession * | session, |
| unsigned int * | length ) |
| bool gekko_record_checksums | ( | GekkoSession * | session, |
| unsigned int | interval ) |
| const unsigned char * gekko_replay_user_data | ( | GekkoSession * | session, |
| unsigned int * | length ) |
| void gekko_rollback_stats | ( | GekkoSession * | session, |
| GekkoRollbackStats * | stats ) |
| GekkoSessionEvent ** gekko_session_events | ( | GekkoSession * | session, |
| int * | count ) |
| void gekko_set_disconnect_timeout | ( | GekkoSession * | session, |
| unsigned int | timeout ) |
| void gekko_set_input_prediction_window | ( | GekkoSession * | session, |
| unsigned char | window ) |
| void gekko_set_local_delay | ( | GekkoSession * | session, |
| int | player, | ||
| unsigned char | delay ) |
| bool gekko_set_replay_user_data | ( | GekkoSession * | session, |
| const void * | data, | ||
| unsigned int | length ) |
| void gekko_set_runahead | ( | GekkoSession * | session, |
| unsigned char | runahead ) |
| int gekko_spectator_buffered_frames | ( | GekkoSession * | session | ) |
| void gekko_start | ( | GekkoSession * | session, |
| GekkoConfig * | config ) |
| bool gekko_start_recording | ( | GekkoSession * | session, |
| bool | save_initial_state, | ||
| bool | disable_compression ) |
| const unsigned char * gekko_stop_recording | ( | GekkoSession * | session, |
| unsigned int * | length ) |
| GekkoGameEvent ** gekko_update_session | ( | GekkoSession * | session, |
| int * | count ) |
|
static |
|
static |
Definition at line 202 of file gekkonet.cpp.
|
static |
Definition at line 203 of file gekkonet.cpp.
|
static |
Definition at line 204 of file gekkonet.cpp.
|
static |
Definition at line 205 of file gekkonet.cpp.
|
static |
Definition at line 206 of file gekkonet.cpp.
|
static |
Definition at line 207 of file gekkonet.cpp.
|
static |
Definition at line 282 of file gekkonet.cpp.