Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ss::basic_listener< _CharT, _Traits > Class Template Reference
[Network Listener]

Controls a listener socket. More...

#include <basic_socketstream_listener.h>

Collaboration diagram for ss::basic_listener< _CharT, _Traits >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef basic_socketstream<
char_type, traits_type
socketstream_type
typedef _CharT char_type
 These are standard types.
typedef _Traits traits_type
 These are standard types.
typedef traits_type::int_type int_type
 These are standard types.
typedef traits_type::pos_type pos_type
 These are standard types.
typedef traits_type::off_type off_type
 These are standard types.

Public Member Functions

 basic_listener ()
 Constructor.
 basic_listener (sockets_base::family __f)
 Constructor.
 ~basic_listener ()
 Destructor.
template<typename AddressT>
void bind (AddressT &__addr)
 Bind socket to local address.
void listen (int __queue=5)
 Listen for incoming connections.
std::auto_ptr< socketstream_typeaccept ()
 Accept incoming connection.

Protected Attributes

basic_socket _M_socket

Detailed Description

template<typename _CharT, typename _Traits>
class ss::basic_listener< _CharT, _Traits >

Controls a listener socket.

A listener socket accepts incoming connections, returning stream objects representing them.

Definition at line 43 of file basic_socketstream_listener.h.


Member Typedef Documentation

template<typename _CharT, typename _Traits>
typedef _CharT ss::basic_listener< _CharT, _Traits >::char_type
 

These are standard types.

They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation.

Definition at line 54 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
typedef traits_type::int_type ss::basic_listener< _CharT, _Traits >::int_type
 

These are standard types.

They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation.

Definition at line 57 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
typedef traits_type::off_type ss::basic_listener< _CharT, _Traits >::off_type
 

These are standard types.

They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation.

Definition at line 59 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
typedef traits_type::pos_type ss::basic_listener< _CharT, _Traits >::pos_type
 

These are standard types.

They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation.

Definition at line 58 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
typedef _Traits ss::basic_listener< _CharT, _Traits >::traits_type
 

These are standard types.

They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation.

Definition at line 55 of file basic_socketstream_listener.h.


Member Function Documentation

template<typename _CharT, typename _Traits>
std::auto_ptr<socketstream_type> ss::basic_listener< _CharT, _Traits >::accept  )  [inline]
 

Accept incoming connection.

Returns:
Smart pointer to a connected stream.

Definition at line 109 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
template<typename AddressT>
void ss::basic_listener< _CharT, _Traits >::bind AddressT &  __addr  )  [inline]
 

Bind socket to local address.

Parameters:
__addr Address to bind.

Definition at line 91 of file basic_socketstream_listener.h.

template<typename _CharT, typename _Traits>
void ss::basic_listener< _CharT, _Traits >::listen int  __queue = 5  )  [inline]
 

Listen for incoming connections.

Parameters:
__queue Size of incoming queue. Mostly ignored.

Definition at line 100 of file basic_socketstream_listener.h.


The documentation for this class was generated from the following file:
Generated on Sat May 21 21:25:51 2005 for Socket Streams Library by  doxygen 1.4.3