library of assembled shared sources |
http://lass.cocamware.com |
Public Member Functions | |
SocketImpl () | |
~SocketImpl () | |
void | bind (unsigned short portNumber) |
void | listen () |
void | accept (SocketImpl *connection) |
void | connect (const std::string &ipAddress, unsigned short portNumber) |
const int | send (const void *begin, int length) |
const int | receive (void *begin, int length) |
SocketImpl () | |
~SocketImpl () | |
void | bind (unsigned short iPortNumber) |
void | listen () |
void | accept (SocketImpl *oConnection) |
void | connect (const std::string &iIpAddress, unsigned short iPortNumber) |
const int | send (const void *iBegin, int iLength) |
const int | receive (void *iBegin, int iLength) |
Protected Member Functions | |
void | swap (NonCopyable &) |
Private Types | |
enum | { invalidSocket = -1 } |
Private Member Functions | |
void | openSocket () |
void | closeSocket () |
void | openSocket () |
Private Attributes | |
int | socket_ |
SOCKET | socket_ |
Definition at line 59 of file socket_libc.inl.
anonymous enum [private] |
lass::io::impl::SocketImpl::SocketImpl | ( | ) | [inline] |
Definition at line 63 of file socket_libc.inl.
lass::io::impl::SocketImpl::~SocketImpl | ( | ) | [inline] |
lass::io::impl::SocketImpl::SocketImpl | ( | ) | [inline] |
lass::io::impl::SocketImpl::~SocketImpl | ( | ) | [inline] |
void lass::io::impl::SocketImpl::bind | ( | unsigned short | portNumber | ) | [inline] |
Definition at line 80 of file socket_libc.inl.
References lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, openSocket(), and socket_.
Referenced by bind(), and lass::io::Socket::bind().
void lass::io::impl::SocketImpl::listen | ( | ) | [inline] |
Definition at line 97 of file socket_libc.inl.
References invalidSocket, LASS_ASSERT, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
Referenced by listen(), and lass::io::Socket::listen().
void lass::io::impl::SocketImpl::accept | ( | SocketImpl * | connection | ) | [inline] |
Definition at line 107 of file socket_libc.inl.
References invalidSocket, LASS_ASSERT, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
Referenced by accept(), and lass::io::Socket::accept().
void lass::io::impl::SocketImpl::connect | ( | const std::string & | ipAddress, | |
unsigned short | portNumber | |||
) | [inline] |
Definition at line 120 of file socket_libc.inl.
References lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, openSocket(), and socket_.
Referenced by connect(), and lass::io::Socket::connect().
const int lass::io::impl::SocketImpl::send | ( | const void * | begin, | |
int | length | |||
) | [inline] |
Definition at line 144 of file socket_libc.inl.
References invalidSocket, LASS_ASSERT, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
Referenced by send(), and lass::io::Socket::send().
const int lass::io::impl::SocketImpl::receive | ( | void * | begin, | |
int | length | |||
) | [inline] |
Definition at line 157 of file socket_libc.inl.
References LASS_ASSERT, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
Referenced by lass::io::Socket::receive().
void lass::io::impl::SocketImpl::openSocket | ( | ) | [inline, private] |
Definition at line 173 of file socket_libc.inl.
References invalidSocket, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
void lass::io::impl::SocketImpl::closeSocket | ( | ) | [inline, private] |
Definition at line 186 of file socket_libc.inl.
References invalidSocket, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW_EX, and socket_.
Referenced by ~SocketImpl().
void lass::io::impl::SocketImpl::bind | ( | unsigned short | iPortNumber | ) | [inline] |
Definition at line 89 of file socket_winsock.inl.
References bind(), LASS_THROW_EX, openSocket(), and socket_.
void lass::io::impl::SocketImpl::listen | ( | ) | [inline] |
void lass::io::impl::SocketImpl::accept | ( | SocketImpl * | oConnection | ) | [inline] |
Definition at line 110 of file socket_winsock.inl.
References accept(), LASS_ASSERT, LASS_THROW_EX, and socket_.
void lass::io::impl::SocketImpl::connect | ( | const std::string & | iIpAddress, | |
unsigned short | iPortNumber | |||
) | [inline] |
Definition at line 122 of file socket_winsock.inl.
References connect(), LASS_THROW_EX, openSocket(), and socket_.
const int lass::io::impl::SocketImpl::send | ( | const void * | iBegin, | |
int | iLength | |||
) | [inline] |
Definition at line 137 of file socket_winsock.inl.
References LASS_ASSERT, LASS_THROW_EX, send(), and socket_.
const int lass::io::impl::SocketImpl::receive | ( | void * | iBegin, | |
int | iLength | |||
) | [inline] |
Definition at line 149 of file socket_winsock.inl.
References LASS_ASSERT, LASS_THROW_EX, and socket_.
void lass::io::impl::SocketImpl::openSocket | ( | ) | [inline, private] |
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
int lass::io::impl::SocketImpl::socket_ [private] |
Definition at line 200 of file socket_libc.inl.
Referenced by accept(), bind(), closeSocket(), connect(), listen(), openSocket(), receive(), send(), and ~SocketImpl().
SOCKET lass::io::impl::SocketImpl::socket_ [private] |
Definition at line 174 of file socket_winsock.inl.
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |