Freeciv21
Develop your civilization from humble roots to a global empire
packet_handlers Struct Reference

#include <packets.h>

Public Attributes

union {
   int(*   no_packet )(struct connection *pconn)
 
   int(*   packet )(struct connection *pconn,
      const void *packet)
 
   int(*   force_to_send )(struct connection *pconn,
      const void *packet, bool
      force_to_send)
 
send [PACKET_LAST]
 
void *(* receive [PACKET_LAST])(struct connection *pconn)
 

Detailed Description

Definition at line 77 of file packets.h.

Member Data Documentation

◆ force_to_send

int(* packet_handlers::force_to_send) (struct connection *pconn, const void *packet, bool force_to_send)

Definition at line 81 of file packets.h.

◆ no_packet

int(* packet_handlers::no_packet) (struct connection *pconn)

Definition at line 79 of file packets.h.

◆ packet

int(* packet_handlers::packet) (struct connection *pconn, const void *packet)

Definition at line 80 of file packets.h.

◆ receive

void*(* packet_handlers::receive[PACKET_LAST])(struct connection *pconn)

Definition at line 84 of file packets.h.

Referenced by get_packet_from_connection_raw().

◆ 

union { ... } packet_handlers::send[PACKET_LAST]