|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <TlsConnection.hxx>
Public Types | |
| enum | TlsState { Initial , Broken , Handshaking , Up } |
| typedef enum resip::TlsConnection::TlsState | TlsState |
Public Types inherited from resip::ConnectionBase | |
| enum | { ChunkSize = 8192 } |
Public Member Functions | |
| RESIP_HeapCount (TlsConnection) | |
| TlsConnection (Transport *transport, const Tuple &who, Socket fd, Security *security, bool server, Data domain, SecurityTypes::SSLType sslType, Compression &compression) | |
| virtual | ~TlsConnection () |
| int | read (char *buf, const int count) |
| pure virtual, but need concrete Connection for book-ends of lists | |
| int | write (const char *buf, const int count) |
| pure virtual, but need concrete Connection for book-ends of lists | |
| virtual bool | hasDataToRead () |
| always true – always add to fdset as read ready | |
| virtual bool | isGood () |
| has valid connection | |
| virtual bool | isWritable () |
| virtual bool | transportWrite () |
| void | getPeerNames (std::list< Data > &peerNames) const |
| const Data & | getSni () const |
| SNI the client sent in its ClientHello, for connections we accepted (server mode); empty if it sent none, and for client mode connections. | |
Public Member Functions inherited from resip::Connection | |
| Connection (Transport *transport, const Tuple &who, Socket socket, Compression &compression, bool isServer) | |
| virtual | ~Connection () |
| Socket | getSocket () const |
| virtual bool | checkConnectionTimedout () |
| void | requestWrite (SendData *sendData) |
| queue data to write and add this to writable list | |
| int | performWrite () |
| send some or all of a queued data; remove from writable if completely written | |
| bool | performWrites (unsigned int max=0) |
| Call performWrite() repeatedly, until either the send queue is exhausted, the write() call fails (probably because the fd is no longer ready to write), or a set number of writes has been performed. | |
| void | ensureWritable () |
| ensure that we are on the writeable list if required | |
| int | read () |
| move data from the connection to the buffer; move this to front of least recently used list. | |
| bool | performReads (unsigned int max=0) |
| Call read() repeatedly, until an error occurs (because the fd is not ready to read, most likely). | |
| void | enableFlowTimer () |
| Ensures this connection is in the FlowTimer LRU list in the connection manager. | |
| bool | isFlowTimerEnabled () |
| bool | isServer () const |
Public Member Functions inherited from resip::ConnectionBase | |
| ConnectionBase (Transport *transport, const Tuple &who, Compression &compression=Compression::Disabled) | |
| FlowKey | getFlowKey () const |
| virtual Transport * | transport () const |
| Tuple & | who () |
| const uint64_t & | whenLastUsed () |
| void | resetLastUsed () |
| void | addAdditionalFailureString (const Data &additionalFailureString) |
Public Member Functions inherited from resip::IntrusiveListElement< P > | |
| IntrusiveListElement () | |
| virtual | ~IntrusiveListElement () |
| bool | empty () const |
| iterator | begin () |
| iterator | end () |
| void | push_front (P elem) |
| void | push_back (P elem) |
| void | remove () |
Public Member Functions inherited from resip::IntrusiveListElement1< P > | |
| IntrusiveListElement1 () | |
| virtual | ~IntrusiveListElement1 () |
| bool | empty () const |
| iterator | begin () |
| iterator | end () |
| void | push_front (P elem) |
| void | push_back (P elem) |
| void | remove () |
Public Member Functions inherited from resip::IntrusiveListElement2< P > | |
| IntrusiveListElement2 () | |
| virtual | ~IntrusiveListElement2 () |
| bool | empty () const |
| iterator | begin () |
| iterator | end () |
| void | push_front (P elem) |
| void | push_back (P elem) |
| void | remove () |
Public Member Functions inherited from resip::IntrusiveListElement3< P > | |
| IntrusiveListElement3 () | |
| virtual | ~IntrusiveListElement3 () |
| bool | empty () const |
| iterator | begin () |
| iterator | end () |
| void | push_front (P elem) |
| void | push_back (P elem) |
| void | remove () |
Public Member Functions inherited from resip::FdPollItemIf | |
| FdPollItemIf () | |
| virtual | ~FdPollItemIf () |
Static Public Member Functions | |
| static const char * | fromState (TlsState) |
Static Public Member Functions inherited from resip::Connection | |
| static void | setEnablePostConnectSocketFuncCall (bool enabled=true) |
Static Public Member Functions inherited from resip::ConnectionBase | |
| static void | setMessageSizeMax (size_t max) |
Static Public Member Functions inherited from resip::IntrusiveListElement< P > | |
| static P | makeList (P elem) |
Static Public Member Functions inherited from resip::IntrusiveListElement1< P > | |
| static P | makeList (P elem) |
Static Public Member Functions inherited from resip::IntrusiveListElement2< P > | |
| static P | makeList (P elem) |
Static Public Member Functions inherited from resip::IntrusiveListElement3< P > | |
| static P | makeList (P elem) |
Definition at line 32 of file TlsConnection.hxx.
| Enumerator | |
|---|---|
| Initial | |
| Broken | |
| Handshaking | |
| Up | |
Definition at line 59 of file TlsConnection.hxx.
| TlsConnection::TlsConnection | ( | Transport * | transport, |
| const Tuple & | who, | ||
| Socket | fd, | ||
| Security * | security, | ||
| bool | server, | ||
| Data | domain, | ||
| SecurityTypes::SSLType | sslType, | ||
| Compression & | compression | ||
| ) |
Definition at line 32 of file TlsConnection.cxx.
|
virtual |
Definition at line 116 of file TlsConnection.cxx.
|
static |
Definition at line 149 of file TlsConnection.cxx.
| void TlsConnection::getPeerNames | ( | std::list< Data > & | peerNames | ) | const |
Definition at line 751 of file TlsConnection.cxx.
|
inline |
SNI the client sent in its ClientHello, for connections we accepted (server mode); empty if it sent none, and for client mode connections.
Only valid once the handshake has completed.
Definition at line 57 of file TlsConnection.hxx.
|
virtual |
always true – always add to fdset as read ready
Reimplemented from resip::Connection.
Definition at line 683 of file TlsConnection.cxx.
|
virtual |
has valid connection
Reimplemented from resip::Connection.
Definition at line 704 of file TlsConnection.cxx.
|
virtual |
Reimplemented from resip::Connection.
Definition at line 730 of file TlsConnection.cxx.
|
virtual |
pure virtual, but need concrete Connection for book-ends of lists
Reimplemented from resip::Connection.
Definition at line 437 of file TlsConnection.cxx.
| resip::TlsConnection::RESIP_HeapCount | ( | TlsConnection | ) |
|
virtual |
Reimplemented from resip::Connection.
Definition at line 587 of file TlsConnection.cxx.
|
virtual |
pure virtual, but need concrete Connection for book-ends of lists
Reimplemented from resip::Connection.
Definition at line 612 of file TlsConnection.cxx.