|
Atrinik Server 2.5
|
Go to the source code of this file.
Functions | |
| void | init_connection (socket_struct *ns, const char *from_ip) |
| void | init_ericserver () |
| void | free_all_newserver () |
| void | free_newsocket (socket_struct *ns) |
| static void | load_srv_file (char *fname, int id) |
| static void | create_client_settings () |
| static void | create_server_settings () |
| static void | create_server_animations () |
| void | init_srv_files () |
| void | free_srv_files () |
| void | send_srv_file (socket_struct *ns, int id) |
Variables | |
| _srv_client_files | SrvClientFiles [SRV_CLIENT_FILES] |
| Socket_Info | socket_info |
| socket_struct * | init_sockets |
Socket initialization related code.
Definition in file init.c.
| static void create_client_settings | ( | ) | [static] |
| static void create_server_animations | ( | ) | [static] |
| static void create_server_settings | ( | ) | [static] |
| void free_all_newserver | ( | ) |
| void free_newsocket | ( | socket_struct * | ns | ) |
| void free_srv_files | ( | ) |
Free all server files previously initialized by init_srv_files().
| void init_connection | ( | socket_struct * | ns, |
| const char * | from_ip | ||
| ) |
Initializes a connection - really, it just sets up the data structure, socket setup is handled elsewhere.
Sends server version to the client.
| ns | Client's socket. |
| from | Where the connection is coming from. |
| void init_ericserver | ( | ) |
| void init_srv_files | ( | ) |
| static void load_srv_file | ( | char * | fname, |
| int | id | ||
| ) | [static] |
| void send_srv_file | ( | socket_struct * | ns, |
| int | id | ||
| ) |
A connecting client has requested a server file.
Note that we don't know anything about the player at this point - we got an open socket, an IP, a matching version, and an usable setup string from the client.
| ns | The client's socket. |
| id | ID of the server file. |
| _srv_client_files SrvClientFiles[SRV_CLIENT_FILES] |
1.7.4