25 #ifndef NRG_REPLAY_SERVER_H
26 #define NRG_REPLAY_SERVER_H
31 #ifdef NRG_ENABLE_ZLIB_COMPRESSION
49 bool bind(
const char* port);
63 uint32_t local_timer, remote_timer;
Socket derivative specifically for the User-Datagram Protocol.
Definition: nrg_socket.h:112
bool isReplayRunning() const
Returns true if the ReplayServer is active.
Class for storing data to be sent / received across the network.
Definition: nrg_packet.h:58
bool bind(const char *port)
Binds the server to the specified local port.
bool openReplay(const char *filename)
Opens the specified replay file by name, returns true if it opened successfully.
Class that reads a replay file and acts as a local server, sending the packets in the file...
Definition: nrg_replay_server.h:40
Classes to wrap POSIX sockets.
Server-specific classes derived from State that are used internally.
ReplayServer()
Default constructor.
Combines both ConnectionIn and ConnectionOut into a single class.
Definition: nrg_connection.h:129
State for default handshake protocol, server-side.
Definition: nrg_server_state.h:36
Common defines and includes used by all the other nrg header files.
bool update()
Updates the ReplayServer, potentially sending new packets.
Class to wrap the various POSIX sockaddrs and resolve hostnames.
Definition: nrg_netaddress.h:32