1#if !defined(RESIP_TCPBASETRANSPORT_HXX)
2#define RESIP_TCPBASETRANSPORT_HXX
11class TransactionMessage;
22 unsigned transportFlags = 0,
71 static const int MaxBufferSize;
84 bool bindClientSocket(
Socket sock,
Collection of Connection per Transport.
Connection implements, via sockets, ConnectionBase for managed connections.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
static const Data Empty
Constant that represents a zero-length data.
Object-oriented wrapper for your platform's file-descriptor set.
A templated, threadsafe message-queue class.
virtual void processPollEvent(FdPollEventMask mask)
Called by PollGrp when activity is possible.
Connection * makeOutgoingConnection(const Tuple &dest, TransportFailure::FailureReason &failCode, int &subCode)
const ConnectionManager & getConnectionManager() const
static const size_t MaxReadSize
virtual void setRcvBufLen(int buflen)
virtual void buildFdSet(FdSet &fdset)
Adds the Transport's socket FD to the appropriate read or write sets as applicable.
virtual void process()
Version of process to be invoked periodically when using callback-based IO (via FdPollGrp).
ConnectionManager & getConnectionManager()
virtual ~TcpBaseTransport()
virtual bool isReliable() const
int processListen()
This doesn't exist anywhere that I can find? !kw! void sendFromRoundRobin(FdSet& fdset);.
virtual void setPollGrp(FdPollGrp *grp)
virtual bool isDatagram() const
static const size_t MaxWriteSize
void processAllWriteRequests()
Forms a connection if one doesn't exist, moves requests to the appropriate connection's fifo.
virtual void init()
Performs constructor activities that depend on virtual functions specified by derived classes.
virtual Connection * createConnection(const Tuple &who, Socket fd, bool server=false)=0
Makes new Connection using provided socket.
virtual void invokeAfterSocketCreationFunc() const
const Data & interfaceName() const
const Data & netNs() const
Represents a network address.
dcm! – add UnusedChecking(_enum) below;
void(* AfterSocketCreationFuncPtr)(Socket s, int transportType, const char *file, int line)
unsigned short FdPollEventMask
IpVersion
An enumeration of IP versions.