library of assembled shared sources |
http://lass.cocamware.com |
#include <socket.h>
Public Member Functions | |
Socket () | |
~Socket () | |
void | bind (unsigned short iPort) |
void | listen () |
void | accept (Socket &oConnection) |
void | connect (const std::string &iIpAddress, unsigned short iPort) |
const int | send (const void *iBegin, int iLength) |
const void *const | send (const void *iBegin, const void *iEnd) |
const int | receive (void *iBegin, int iLength) |
void *const | receive (void *iBegin, void *iEnd) |
void | swap (Socket &ioOther) |
Protected Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
void * | pimpl_ |
Definition at line 70 of file socket.h.
lass::io::Socket::Socket | ( | ) |
lass::io::Socket::~Socket | ( | ) |
void lass::io::Socket::bind | ( | unsigned short | iPort | ) |
Definition at line 86 of file socket.cpp.
References lass::io::impl::SocketImpl::bind(), LASS_ASSERT, and pimpl_.
void lass::io::Socket::listen | ( | ) |
Definition at line 95 of file socket.cpp.
References LASS_ASSERT, lass::io::impl::SocketImpl::listen(), and pimpl_.
void lass::io::Socket::accept | ( | Socket & | oConnection | ) |
Definition at line 104 of file socket.cpp.
References lass::io::impl::SocketImpl::accept(), LASS_ASSERT, and pimpl_.
void lass::io::Socket::connect | ( | const std::string & | iIpAddress, | |
unsigned short | iPort | |||
) |
Definition at line 115 of file socket.cpp.
References lass::io::impl::SocketImpl::connect(), LASS_ASSERT, and pimpl_.
const int lass::io::Socket::send | ( | const void * | iBegin, | |
int | iLength | |||
) |
Definition at line 123 of file socket.cpp.
References LASS_ASSERT, pimpl_, and lass::io::impl::SocketImpl::send().
Referenced by lass::io::BinaryOSocket::flusher().
const void *const lass::io::Socket::send | ( | const void * | iBegin, | |
const void * | iEnd | |||
) |
Definition at line 132 of file socket.cpp.
References LASS_ASSERT, pimpl_, and lass::io::impl::SocketImpl::send().
const int lass::io::Socket::receive | ( | void * | iBegin, | |
int | iLength | |||
) |
Definition at line 146 of file socket.cpp.
References LASS_ASSERT, pimpl_, and lass::io::impl::SocketImpl::receive().
Referenced by lass::io::BinaryISocket::doRead().
void *const lass::io::Socket::receive | ( | void * | iBegin, | |
void * | iEnd | |||
) |
Definition at line 155 of file socket.cpp.
References LASS_ASSERT, pimpl_, and lass::io::impl::SocketImpl::receive().
void lass::io::Socket::swap | ( | Socket & | ioOther | ) |
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
void* lass::io::Socket::pimpl_ [private] |
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |