Freeciv-3.2: /fast/freeciv/nightly/S3_2/utility/net_types.h File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Macros | Enumerations | Functions
net_types.h File Reference
`#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)

## Macro Definition Documentation

## ◆ ANNOUNCE_DEFAULT

#define ANNOUNCE_DEFAULT ANNOUNCE_IPV4

Definition at line 59 of file net_types.h.

## Enumeration Type Documentation

## ◆ announce_type

enum announce_type

Enumerator
ANNOUNCE_NONE |
ANNOUNCE_IPV4 |
ANNOUNCE_IPV6 |

Definition at line 53 of file net_types.h.

## ◆ fc_addr_family

enum fc_addr_family

Enumerator
FC_ADDR_IPV4 |
FC_ADDR_IPV6 |
FC_ADDR_ANY |

Definition at line 61 of file net_types.h.

## Function Documentation

## ◆ addr_family_for_announce_type()

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().

## ◆ fc_init_network()

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().

## ◆ fc_shutdown_network()

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().