19#ifndef CONNECT_TO_PEER_HPP
20#define CONNECT_TO_PEER_HPP
23#include "network/socket_address.hpp"
24#include "utils/cpp2011.hpp"
50 virtual void setup() OVERRIDE {}
51 virtual void update(
int ticks) OVERRIDE {}
One instance of this is started for every peer who tries to connect to this server.
Definition: connect_to_peer.hpp:30
unsigned m_tried_connection
If greater than a certain value, terminate this protocol.
Definition: connect_to_peer.hpp:38
virtual void asynchronousUpdate() OVERRIDE
Simple finite state machine: Start a GetPeerAddress protocol.
Definition: connect_to_peer.cpp:44
uint64_t m_timer
Timer use for tracking broadcast.
Definition: connect_to_peer.hpp:35
virtual void update(int ticks) OVERRIDE
Called by the protocol listener, synchronously with the main loop.
Definition: connect_to_peer.hpp:51
virtual void setup() OVERRIDE
Called when the protocol is going to start.
Definition: connect_to_peer.hpp:50
Abstract class used to define the global protocol functions.
Definition: protocol.hpp:92
Describes a IPv4 or IPv6 address in sockaddr_in(6) format, suitable in using with sendto.
Definition: socket_address.hpp:47
Generic protocols declarations.