#include <CTCPConnectionLost.h>
Public Member Functions | |
CTCPConnectionLost (CSocket *pSocket, const char *pDoing) | |
CTCPConnectionLost (const CTCPConnectionLost &rhs) | |
virtual | ~CTCPConnectionLost () |
CTCPConnectionLost & | operator= (const CTCPConnectionLost &rhs) |
int | operator== (const CTCPConnectionLost &rhs) |
STD (string) getHost() const | |
STD (string) getPort() const | |
virtual const char * | ReasonText () const |
Protected Member Functions | |
void | setHost (const STD(string)&rHost) |
void | setPort (const STD(string)&rPort) |
void | Host (CSocket *pSocket) |
void | Port (CSocket *pSocket) |
Private Member Functions | |
STD (string) m_Host | |
STD (string) m_Port | |
STD (string) m_ReasonText |
Definition at line 308 of file CTCPConnectionLost.h.
|
'Normal constructor' This is called prior to throwing a connection lost exception. The host and port information are gotten from the socket. The reason the connection was lost is currently in errno.
Definition at line 314 of file CTCPConnectionLost.cpp. |
|
Copy constructor.. used by the compiler to generate termporary variables and of course, by throw to create a scope-safe copy of the exception being thrown.
Definition at line 325 of file CTCPConnectionLost.cpp. |
|
Definition at line 322 of file CTCPConnectionLost.h. |
|
Extract the peer's hostname from the socket. This is done as follows:
Definition at line 403 of file CTCPConnectionLost.cpp. References CApplicationSerializer::getInstance(), CSocket::getSocketFd(), CThreadRecursiveMutex::Lock(), and CThreadRecursiveMutex::UnLock(). Referenced by CTCPConnectionLost(). |
|
Assignment operator. Only slightly different than copy construction:
Definition at line 340 of file CTCPConnectionLost.cpp. |
|
Equality comparison.
Definition at line 355 of file CTCPConnectionLost.cpp. |
|
For a given CSocket* fills in m_Port. This is done by:
Definition at line 443 of file CTCPConnectionLost.cpp. References CApplicationSerializer::getInstance(), CSocket::getSocketFd(), CThreadRecursiveMutex::Lock(), and CThreadRecursiveMutex::UnLock(). Referenced by CTCPConnectionLost(). |
|
Return the reason for the exception as a textual string of the form: Connection with host m_Host at m_Port was lost: CErrnoException::ReasonText() Definition at line 373 of file CTCPConnectionLost.cpp. |
|
Definition at line 339 of file CTCPConnectionLost.h. |
|
Definition at line 342 of file CTCPConnectionLost.h. |
|
Definition at line 333 of file CTCPConnectionLost.h. |
|
Definition at line 331 of file CTCPConnectionLost.h. |
|
|
|
|
|
|