Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
peer Struct Reference

Structure to represent a network peer. More...

#include <socket.h>

Collaboration diagram for peer:

Public Attributes

int socket
 
struct socket_request_listener listener
 
char * incoming_buffer
 
int ping
 
struct message_handler ** handlers
 
int handler_count
 

Detailed Description

Structure to represent a network peer.

This structure contains information about a network peer, including its socket, request listener, incoming buffer, ping value, and message handlers.

Member Data Documentation

◆ socket

peer::socket

The socket file descriptor associated with the peer.

◆ listener

peer::listener

The socket request listener associated with the peer, used to monitor read events and handle timeouts.

◆ incoming_buffer

peer::incoming_buffer

Pointer to a buffer used for storing incoming data from the peer.

◆ ping

peer::ping

An integer value representing the ping (latency) of the peer.

◆ handlers

peer::handlers

Array of pointers to message handler structures, used to process incoming messages from the peer.

◆ handler_count

peer::handler_count

The number of message handlers in the handlers array.


The documentation for this struct was generated from the following file: