#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"
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) |
#define LOG | ( | a | ) | a |
Referenced by con::ConnectionReceiveThread::checkIncomingBuffers(), con::Connection::createPeer(), con::ConnectionSendThread::disconnect(), con::ConnectionSendThread::disconnect_peer(), con::ConnectionReceiveThread::handlePacketType_Control(), con::ConnectionReceiveThread::handlePacketType_Original(), con::ConnectionReceiveThread::handlePacketType_Reliable(), con::ConnectionReceiveThread::handlePacketType_Split(), con::IncomingSplitBuffer::insert(), con::ReliablePacketBuffer::popSeqnum(), con::ReliablePacketBuffer::print(), con::ConnectionSendThread::processNonReliableCommand(), con::ConnectionSendThread::processReliableCommand(), con::UDPPeer::processReliableSendCommand(), con::UDPPeer::PutReliableSendCommand(), con::ConnectionSendThread::rawSend(), con::ConnectionSendThread::rawSendAsPacket(), con::ConnectionReceiveThread::receive(), con::Connection::ReceiveTimeoutMs(), con::IncomingSplitBuffer::removeUnreliableTimedOuts(), con::ConnectionReceiveThread::run(), con::ConnectionSendThread::run(), con::UDPPeer::RunCommandQueues(), con::ConnectionSendThread::runTimeouts(), con::ConnectionSendThread::send(), con::Connection::sendAck(), con::ConnectionSendThread::sendAsPacketReliable(), con::ConnectionSendThread::sendPackets(), and con::ConnectionSendThread::serve().
#define PING_TIMEOUT 5.0f |
Referenced by con::UDPPeer::Ping().
#define PROFILE | ( | a | ) | a |
#define RESEND_SCALE_BASE 1.5f |
Referenced by con::ReliablePacketBuffer::getResend().
#define RESEND_TIMEOUT_FACTOR 2 |
Referenced by con::UDPPeer::reportRTT().
#define RESEND_TIMEOUT_MAX 2.0f |
Referenced by con::UDPPeer::reportRTT().
#define RESEND_TIMEOUT_MIN 0.1f |
Referenced by con::UDPPeer::reportRTT().