IT++ Logo Newcom Logo

tcp.cpp File Reference

Implementation of Transport Control Protocol (TCP). More...

#include <itpp/protocol/tcp.h>
#include <itpp/base/itfile.h>
#include <limits>
#include <ctime>

Go to the source code of this file.

Namespaces

namespace  itpp

Defines

#define TCP_HEADERLENGTH   40
#define TCP_VERSION   kReno
#define TCP_SMSS   1460
#define TCP_INITIALCWNDREL   2
#define TCP_INITIALSSTHRESHREL   1
#define TCP_MAXCWNDREL   32
#define TCP_DUPACKS   3
#define TCP_INITIALRTT   1
#define TCP_MAXBACKOFF   64
#define TCP_MAXRTO   std::numeric_limits<double>::max()
#define TCP_IMMEDIATEBACKOFFRESET   false
#define TCP_TIMESTAMPS   false
#define TCP_KARN   true
#define TCP_NAGLE   false
#define TCP_GOBACKN   true
#define TCP_FLIGHTSIZERECOVERY   false
#define TCP_RENOCONSERVATION   true
#define TCP_CAREFULSSTHRESHREDUCTION   true
#define TCP_IGNOREDUPACKONTORECOVERY   true
#define TCP_CAREFULMULFASTRTXAVOIDANCE   true
#define TCP_RESTARTAFTERIDLE   true
#define TCP_RMSS   1460
#define TCP_BUFFERSIZE   INT_MAX/4
#define TCP_DELAYEDACK   true
#define TCP_SENDPERIODICACKS   false
#define TCP_STRICTPERIODICACKS   false
#define TCP_PERIODICACKINTERVAL   1
#define TCP_ACKSCHEDULINGDELAY   0
#define TCP_ACKBUFFERWRITE   false
#define TCP_ACKBUFFERREAD   true
#define TCP_MAXUSERBLOCKSIZE   INT_MAX/4
#define TCP_MINUSERBLOCKSIZE   1
#define TCP_USERBLOCKPROCDELAY   0
#define TCPGEN_BLOCKSIZE   1460
#define TCPAPP_MAXNOOFACTIVEAPPS   500
#define TCPAPP_DISTSTATARRAYSIZE   100
#define TCPAPP_DISTSTATMAXGOODPUT   1000
#define TCPAPP_DISTSTATMAXTRANSFERTIME   10000
#define TCPAPP_CONDMEANSTATARRAYSIZE   100
#define TCPAPP_CONDMEANSTATMAXREQSIZE   100000

Functions

int itpp::min (int opd1, int opd2)
int itpp::max (int opd1, int opd2)
double itpp::round (const double value, const double granularity)
std::ostream & itpp::operator<< (std::ostream &os, const TCP_Segment &segment)
std::ostream & itpp::operator<< (std::ostream &out, TCP_Packet &msg)

Variables

const double itpp::TCP_STIMERGRAN = 0.2
const double itpp::TCP_SWSATIMERVALUE = 0.2
const double itpp::TCP_ACKDELAYTIME = 0.2


Detailed Description

Implementation of Transport Control Protocol (TCP).

Author:
Krister Norlund
Date
2006-08-07 09:47:30 +0200 (pon, 07 sie 2006)
Revision
578

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2006 (see AUTHORS file for a list of contributors)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Copyright (c) 2000-2004 IKR (formerly IND), University of Stuttgart This file is part of the IKR (formerly IND) TCP Library.

Definition in file tcp.cpp.

SourceForge Logo

Generated on Wed Apr 18 11:45:36 2007 for IT++ by Doxygen 1.5.2