Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
impl.cpp File Reference
#include <iomanip>
#include <cerrno>
#include <algorithm>
#include <cmath>
#include "network/mtp/internal.h"
#include "serialization.h"
#include "log.h"
#include "porting.h"
#include "network/mtp/threads.h"
#include "network/peerhandler.h"
#include "network/networkpacket.h"
#include "util/serialize.h"
#include "util/numeric.h"
#include "util/string.h"
#include "settings.h"
#include "profiler.h"
+ Include dependency graph for impl.cpp:

Namespaces

namespace  con
 

Macros

#define PROFILE(a)   a
 
#define LOG(a)   a
 
#define PING_TIMEOUT   5.0f
 
#define RESEND_SCALE_BASE   1.5f
 
#define RESEND_TIMEOUT_MIN   0.1f
 
#define RESEND_TIMEOUT_MAX   2.0f
 
#define RESEND_TIMEOUT_FACTOR   2
 

Functions

BufferedPacketPtr con::makePacket (const Address &address, const SharedBuffer< u8 > &data, u32 protocol_id, session_t sender_peer_id, u8 channel)
 
SharedBuffer< u8 > con::makeOriginalPacket (const SharedBuffer< u8 > &data)
 
void con::makeSplitPacket (const SharedBuffer< u8 > &data, u32 chunksize_max, u16 seqnum, std::list< SharedBuffer< u8 > > *chunks)
 
void con::makeAutoSplitPacket (const SharedBuffer< u8 > &data, u32 chunksize_max, u16 &split_seqnum, std::list< SharedBuffer< u8 > > *list)
 
SharedBuffer< u8 > con::makeReliablePacket (const SharedBuffer< u8 > &data, u16 seqnum)
 

Macro Definition Documentation

◆ LOG

◆ PING_TIMEOUT

#define PING_TIMEOUT   5.0f

Referenced by con::UDPPeer::Ping().

◆ PROFILE

◆ RESEND_SCALE_BASE

#define RESEND_SCALE_BASE   1.5f

◆ RESEND_TIMEOUT_FACTOR

#define RESEND_TIMEOUT_FACTOR   2

Referenced by con::UDPPeer::reportRTT().

◆ RESEND_TIMEOUT_MAX

#define RESEND_TIMEOUT_MAX   2.0f

Referenced by con::UDPPeer::reportRTT().

◆ RESEND_TIMEOUT_MIN

#define RESEND_TIMEOUT_MIN   0.1f

Referenced by con::UDPPeer::reportRTT().