library of assembled shared sources

http://lass.cocamware.com

lass::io::impl::SocketImpl Class Reference

Inheritance diagram for lass::io::impl::SocketImpl:

Inheritance graph
[legend]
Collaboration diagram for lass::io::impl::SocketImpl:

Collaboration graph
[legend]

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_

Detailed Description

Definition at line 59 of file socket_libc.inl.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
invalidSocket 

Definition at line 171 of file socket_libc.inl.


Constructor & Destructor Documentation

lass::io::impl::SocketImpl::SocketImpl (  )  [inline]

Definition at line 63 of file socket_libc.inl.

lass::io::impl::SocketImpl::~SocketImpl (  )  [inline]

Definition at line 68 of file socket_libc.inl.

References lass::io::cerr(), and closeSocket().

lass::io::impl::SocketImpl::SocketImpl (  )  [inline]

Definition at line 62 of file socket_winsock.inl.

References LASS_THROW_EX.

lass::io::impl::SocketImpl::~SocketImpl (  )  [inline]

Definition at line 77 of file socket_winsock.inl.

References LASS_ASSERT, and socket_.


Member Function Documentation

void lass::io::impl::SocketImpl::bind ( unsigned short  portNumber  )  [inline]

void lass::io::impl::SocketImpl::listen (  )  [inline]

void lass::io::impl::SocketImpl::accept ( SocketImpl connection  )  [inline]

void lass::io::impl::SocketImpl::connect ( const std::string &  ipAddress,
unsigned short  portNumber 
) [inline]

const int lass::io::impl::SocketImpl::send ( const void *  begin,
int  length 
) [inline]

const int lass::io::impl::SocketImpl::receive ( void *  begin,
int  length 
) [inline]

void lass::io::impl::SocketImpl::openSocket (  )  [inline, private]

void lass::io::impl::SocketImpl::closeSocket (  )  [inline, private]

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]

Definition at line 104 of file socket_winsock.inl.

References LASS_ASSERT, listen(), and socket_.

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]

Definition at line 162 of file socket_winsock.inl.

References LASS_THROW_EX, and socket_.

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

Definition at line 174 of file socket_winsock.inl.


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