|
Freeciv-3.1
|
#include "freeciv_config.h"Go to the source code of this file.
Macros | |
| #define | ANNOUNCE_DEFAULT ANNOUNCE_IPV4 |
Enumerations | |
| enum | announce_type { ANNOUNCE_NONE , ANNOUNCE_IPV4 , ANNOUNCE_IPV6 } |
| enum | fc_addr_family { FC_ADDR_IPV4 , FC_ADDR_IPV6 , FC_ADDR_ANY } |
Functions | |
| void | fc_init_network (void) |
| void | fc_shutdown_network (void) |
| int | addr_family_for_announce_type (enum announce_type announce) |
| #define ANNOUNCE_DEFAULT ANNOUNCE_IPV4 |
Definition at line 59 of file net_types.h.
| enum announce_type |
| Enumerator | |
|---|---|
| ANNOUNCE_NONE | |
| ANNOUNCE_IPV4 | |
| ANNOUNCE_IPV6 | |
Definition at line 53 of file net_types.h.
| enum fc_addr_family |
| Enumerator | |
|---|---|
| FC_ADDR_IPV4 | |
| FC_ADDR_IPV6 | |
| FC_ADDR_ANY | |
Definition at line 61 of file net_types.h.
| int addr_family_for_announce_type | ( | enum announce_type | announce | ) |
Return address family matching the announce type
Definition at line 685 of file netintf.c.
Referenced by send_lanserver_response().
| void fc_init_network | ( | void | ) |
Initialize network stuff.
Definition at line 198 of file netintf.c.
Referenced by client_main(), fcmp_init(), and srv_prepare().
| void fc_shutdown_network | ( | void | ) |
Shutdown network stuff.
Definition at line 217 of file netintf.c.
Referenced by at_exit(), close_connections_and_socket(), and fcmp_deinit().