#include <ulxr_tcpip_connection.h>
Public Member Functions | |
ServerSocketData (int s_no) | |
Construct the server socket. | |
virtual | ~ServerSocketData () |
Destroy the server socket. | |
int | getSocket () const |
Gets the socket handle. | |
void | close () |
Closes the socket - no shutdown. | |
virtual void | shutdown (int mode) |
Shuts down the socket. | |
bool | isOpen () |
Queries if the socket has been closed via close() or shutdown() . | |
void | incRef () |
Increment the usage count by 1. | |
int | decRef () |
Decrement the usage count by 1. | |
Private Attributes | |
int | count |
int | socket_no |
Definition at line 253 of file ulxr_tcpip_connection.h.
ulxr::TcpIpConnection::ServerSocketData::ServerSocketData | ( | int | s_no | ) |
Construct the server socket.
s_no | the socket handle |
Definition at line 72 of file ulxr_tcpip_connection.cpp.
ulxr::TcpIpConnection::ServerSocketData::~ServerSocketData | ( | ) | [virtual] |
Destroy the server socket.
Definition at line 79 of file ulxr_tcpip_connection.cpp.
References close().
int ulxr::TcpIpConnection::ServerSocketData::getSocket | ( | ) | const |
Gets the socket handle.
Definition at line 85 of file ulxr_tcpip_connection.cpp.
void ulxr::TcpIpConnection::ServerSocketData::close | ( | ) |
Closes the socket - no shutdown.
Definition at line 111 of file ulxr_tcpip_connection.cpp.
References ulxr::TcpIpConnection::close(), ulxr::TransportError, ULXR_PCHAR, and ULXR_TRACE.
Referenced by ~ServerSocketData().
void ulxr::TcpIpConnection::ServerSocketData::shutdown | ( | int | mode | ) | [virtual] |
Shuts down the socket.
mode | shutdown mode
|
Definition at line 130 of file ulxr_tcpip_connection.cpp.
References ulxr::TcpIpConnection::shutdown(), ulxr::TransportError, ULXR_PCHAR, and ULXR_TRACE.
Referenced by ulxr::TcpIpConnection::decrementServerRef().
bool ulxr::TcpIpConnection::ServerSocketData::isOpen | ( | ) |
Queries if the socket has been closed via close()
or shutdown()
.
Definition at line 105 of file ulxr_tcpip_connection.cpp.
Referenced by ulxr::TcpIpConnection::decrementServerRef().
void ulxr::TcpIpConnection::ServerSocketData::incRef | ( | ) |
int ulxr::TcpIpConnection::ServerSocketData::decRef | ( | ) |
Decrement the usage count by 1.
Definition at line 97 of file ulxr_tcpip_connection.cpp.
Referenced by ulxr::TcpIpConnection::decrementServerRef().
int ulxr::TcpIpConnection::ServerSocketData::count [private] |
Definition at line 297 of file ulxr_tcpip_connection.h.
int ulxr::TcpIpConnection::ServerSocketData::socket_no [private] |
Definition at line 298 of file ulxr_tcpip_connection.h.