library of assembled shared sources

http://lass.cocamware.com

lass::io::Socket Class Reference

TCP/IP socket. More...

#include <socket.h>

Inheritance diagram for lass::io::Socket:

Inheritance graph
[legend]
Collaboration diagram for lass::io::Socket:

Collaboration graph
[legend]

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_

Detailed Description

TCP/IP socket.

Definition at line 70 of file socket.h.


Constructor & Destructor Documentation

lass::io::Socket::Socket (  ) 

Definition at line 68 of file socket.cpp.

References pimpl_.

lass::io::Socket::~Socket (  ) 

Definition at line 76 of file socket.cpp.

References LASS_ASSERT, and pimpl_.


Member Function Documentation

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  ) 

Definition at line 169 of file socket.cpp.

References pimpl_.

void lass::util::NonCopyable::swap ( NonCopyable  )  [inline, protected, inherited]

Definition at line 60 of file non_copyable.h.

Referenced by lass::io::Image::readLine().


Field Documentation

void* lass::io::Socket::pimpl_ [private]

Definition at line 90 of file socket.h.

Referenced by accept(), bind(), connect(), listen(), receive(), send(), Socket(), swap(), and ~Socket().


The documentation for this class was generated from the following files:

Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo