aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-04-14 03:06:24 -0400
committerShadowNinja <noreply@gmail.com>2013-04-14 03:06:24 -0400
commit9e0bb94460f38efa0458a1493ffd785b7b96a352 (patch)
tree875f758bdab2ae35869031d313e3a9f573fc321b /games
parent7cd5eb4c77de9fda4946de7e1c2384d0c2a0253e (diff)
downloadminetest-9e0bb94460f38efa0458a1493ffd785b7b96a352.tar.gz
minetest-9e0bb94460f38efa0458a1493ffd785b7b96a352.tar.bz2
minetest-9e0bb94460f38efa0458a1493ffd785b7b96a352.zip
Remove old Makefile(that is what git is for)
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions
m">GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include "networkprotocol.h" namespace con { typedef enum { MIN_RTT, MAX_RTT, AVG_RTT, MIN_JITTER, MAX_JITTER, AVG_JITTER } rtt_stat_type; class Peer; class PeerHandler { public: PeerHandler() = default; virtual ~PeerHandler() = default; /* This is called after the Peer has been inserted into the Connection's peer container. */ virtual void peerAdded(Peer *peer) = 0; /* This is called before the Peer has been removed from the Connection's peer container. */ virtual void deletingPeer(Peer *peer, bool timeout) = 0; }; enum PeerChangeType : u8 { PEER_ADDED, PEER_REMOVED }; struct PeerChange { PeerChange(PeerChangeType t, session_t _peer_id, bool _timeout) : type(t), peer_id(_peer_id), timeout(_timeout) { } PeerChange() = delete; PeerChangeType type; session_t peer_id; bool timeout; }; }