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

ss::basic_socketstream< _CharT, _Traits > Class Template Reference
[I/O Streams]

Controlling input and output on sockets. More...

#include <basic_iosocketstream.h>

Inheritance diagram for ss::basic_socketstream< _CharT, _Traits >:

Inheritance graph
[legend]
Collaboration diagram for ss::basic_socketstream< _CharT, _Traits >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef basic_socketbuf< char_type,
traits_type
__streambuf_type
typedef std::basic_iostream<
char_type, traits_type
__stream_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_socketstream ()
 Default constructor.
 basic_socketstream (family __f, style __s)
 Constructor.
virtual ~basic_socketstream ()
 Destructor.
bool is_open ()
 Checks if stream is open.
template<typename AddressT>
void connect (AddressT &__addr)
 Opens a connection.
void shutdown (shutmode __mode=sockets_base::rw)
 Shuts stream down.
__streambuf_typerdbuf () const
 The underlying streambuf.
__stream_typeoperator>> (flag &__flag)
__stream_typeoperator<< (flag &__flag)

Protected Member Functions

 basic_socketstream (basic_socket::descriptor_t descriptor)
 Constructor.

Protected Attributes

__streambuf_type _M_buffer

Friends

class basic_listener

Detailed Description

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

Controlling input and output on sockets.

Definition at line 39 of file basic_iosocketstream.h.


Member Typedef Documentation

template<typename _CharT, typename _Traits>
typedef _CharT ss::basic_socketstream< _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.

Reimplemented from std::basic_iostream< _CharT, _Traits >.

Definition at line 53 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::int_type ss::basic_socketstream< _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.

Reimplemented from std::basic_iostream< _CharT, _Traits >.

Definition at line 56 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::off_type ss::basic_socketstream< _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.

Reimplemented from std::basic_iostream< _CharT, _Traits >.

Definition at line 58 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::pos_type ss::basic_socketstream< _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.

Reimplemented from std::basic_iostream< _CharT, _Traits >.

Definition at line 57 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
typedef _Traits ss::basic_socketstream< _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.

Reimplemented from std::basic_iostream< _CharT, _Traits >.

Definition at line 54 of file basic_iosocketstream.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
ss::basic_socketstream< _CharT, _Traits >::basic_socketstream family  __f,
style  __s
[inline]
 

Constructor.

Parameters:
__f Socket family.
__s Socket style.

Definition at line 80 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
virtual ss::basic_socketstream< _CharT, _Traits >::~basic_socketstream  )  [inline, virtual]
 

Destructor.

Does nothing special.

Definition at line 89 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
ss::basic_socketstream< _CharT, _Traits >::basic_socketstream basic_socket::descriptor_t  descriptor  )  [inline, protected]
 

Constructor.

Constructs a socketstream over an existing socket descriptor.

Definition at line 158 of file basic_iosocketstream.h.


Member Function Documentation

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

Opens a connection.

Parameters:
__addr Address of peer.

Definition at line 108 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
bool ss::basic_socketstream< _CharT, _Traits >::is_open  )  [inline]
 

Checks if stream is open.

Returns:
true if stream is open, false otherwise.

Definition at line 98 of file basic_iosocketstream.h.

template<typename _CharT, typename _Traits>
void ss::basic_socketstream< _CharT, _Traits >::shutdown shutmode  __mode = sockets_base::rw  )  [inline]
 

Shuts stream down.

Parameters:
__mode Shutdown mode.
This effectively closes the connection, as opposed to closing the stream on the system (which is attempted with a close() ).

Definition at line 124 of file basic_iosocketstream.h.


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