VIP::Connection Class Reference
#include <connection.hh>
Inheritance diagram for VIP::Connection:

Detailed Description
Definition at line 96 of file connection.hh.
Public Types
- Opening
- WaitingForReply
- Connected
- Lingering
- Closed
- enum ConnectState {
Opening, WaitingForReply, Connected, Lingering,
Closed
}
Public Member Functions
- Connection (int skt, sockaddr_in *remoteaddr, SocketMultiplexer *sm)
- ~Connection ()
- bool isConnected ()
- void queueMsg (Message *m)
- void flush ()
- void setCallback (MsgCallback *cb)
- void setDisconnectCallback (DisconnectCallback *cb)
- void splitIntoChunks (uint8_t *buf, unsigned int sz)
- void sendSYN ()
- bool handleSYN (uint8_t *buf, unsigned int sz)
- void sleepForSYN (uint8_t *buf, unsigned int sz)
- void wakeupForSYN ()
- void doCallback (Message *m)
- void killSender ()
- void senderLoop ()
- void wakeupSender ()
- double getSRTT ()
- double getHighRTT ()
- double getRTO ()
- unsigned int getCWND ()
- void ackBytes (unsigned int bytes, bool resetRecovery)
- unsigned int totalBytesSent ()
- void notifyLoss ()
- void fastRecovery ()
- void getLocalAddress (unsigned char ipaddr[4], unsigned int &port)
- void getLocalHostname (std::string &hostname, unsigned int &port)
- void getPeerAddress (unsigned char ipaddr[4], unsigned int &port)
- void getPeerHostname (std::string &hostname, unsigned int &port)
- int recv (int ToS, int channel, uint8_t *data, unsigned int maxsize, bool block)
- void close (bool linger=true, bool waitForClose=false, bool norst=false)
- unsigned int queuedBytes (int ToS, int channel)
- ConnectState getState ()
Member Enumeration Documentation
Definition at line 99 of file connection.hh.
Constructor & Destructor Documentation
| VIP::Connection::Connection | ( | int | skt, | |
| sockaddr_in * | remoteaddr, | |||
| SocketMultiplexer * | sm | |||
| ) |
| VIP::Connection::~Connection | ( | ) |
Member Function Documentation
| void VIP::Connection::ackBytes | ( | unsigned int | bytes, | |
| bool | resetRecovery | |||
| ) |
| void VIP::Connection::close | ( | bool | linger = true, |
|
| bool | waitForClose = false, |
|||
| bool | norst = false | |||
| ) |
| void VIP::Connection::doCallback | ( | Message * | m | ) |
| void VIP::Connection::fastRecovery | ( | ) |
| void VIP::Connection::flush | ( | ) |
| unsigned int VIP::Connection::getCWND | ( | ) | [inline] |
Definition at line 224 of file connection.hh.
| double VIP::Connection::getHighRTT | ( | ) | [inline] |
Definition at line 222 of file connection.hh.
| void VIP::Connection::getLocalAddress | ( | unsigned char | ipaddr[4], | |
| unsigned int & | port | |||
| ) |
| void VIP::Connection::getLocalHostname | ( | std::string & | hostname, | |
| unsigned int & | port | |||
| ) |
| void VIP::Connection::getPeerAddress | ( | unsigned char | ipaddr[4], | |
| unsigned int & | port | |||
| ) |
| void VIP::Connection::getPeerHostname | ( | std::string & | hostname, | |
| unsigned int & | port | |||
| ) |
| double VIP::Connection::getRTO | ( | ) | [inline] |
Definition at line 223 of file connection.hh.
| double VIP::Connection::getSRTT | ( | ) | [inline] |
Definition at line 221 of file connection.hh.
| ConnectState VIP::Connection::getState | ( | ) | [inline] |
Definition at line 247 of file connection.hh.
| bool VIP::Connection::handleSYN | ( | uint8_t * | buf, | |
| unsigned int | sz | |||
| ) |
| bool VIP::Connection::isConnected | ( | ) | [inline] |
Definition at line 198 of file connection.hh.
| void VIP::Connection::killSender | ( | ) |
| void VIP::Connection::notifyLoss | ( | ) |
| unsigned int VIP::Connection::queuedBytes | ( | int | ToS, | |
| int | channel | |||
| ) |
| void VIP::Connection::queueMsg | ( | Message * | m | ) |
| int VIP::Connection::recv | ( | int | ToS, | |
| int | channel, | |||
| uint8_t * | data, | |||
| unsigned int | maxsize, | |||
| bool | block | |||
| ) |
| void VIP::Connection::senderLoop | ( | ) |
| void VIP::Connection::sendSYN | ( | ) |
| void VIP::Connection::setCallback | ( | MsgCallback * | cb | ) |
| void VIP::Connection::setDisconnectCallback | ( | DisconnectCallback * | cb | ) | [inline] |
Definition at line 204 of file connection.hh.
| void VIP::Connection::sleepForSYN | ( | uint8_t * | buf, | |
| unsigned int | sz | |||
| ) |
| void VIP::Connection::splitIntoChunks | ( | uint8_t * | buf, | |
| unsigned int | sz | |||
| ) |
| unsigned int VIP::Connection::totalBytesSent | ( | ) | [inline] |
Definition at line 227 of file connection.hh.
| void VIP::Connection::wakeupForSYN | ( | ) |
| void VIP::Connection::wakeupSender | ( | ) |
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/vip/connection.hh