BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioBasicSocketStream< _CharT, _Traits > Class Template Reference

#include <BioSocketStream.h>

List of all members.

Public Types

typedef _CharT char_type
typedef _Traits traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type

Public Member Functions

 BioBasicSocketStream ()
 BioBasicSocketStream (const BioSocket &sock_)
 BioBasicSocketStream (const BioSocketAddressIn sin_)
 Construct a stream object and connect it to address _sin using a TCP connection.
virtual ~BioBasicSocketStream ()
bool is_connected () const throw ()
 Return true if the stream is connected.
bool connect (const BioSocketAddressIn &sin_)
 Connect the stream to a given address, calling sockbuf::connect().
bool connect (const std::string &addr_, uint16_t port_)
 Connect the stream to a given address, calling sockbuf::connect().
bool close ()
 Close the connection, calling sockbuf::close()

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
class BioBasicSocketStream< _CharT, _Traits >


Member Typedef Documentation

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
typedef _CharT BioBasicSocketStream< _CharT, _Traits >::char_type
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
typedef traits_type::int_type BioBasicSocketStream< _CharT, _Traits >::int_type
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
typedef traits_type::off_type BioBasicSocketStream< _CharT, _Traits >::off_type
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
typedef traits_type::pos_type BioBasicSocketStream< _CharT, _Traits >::pos_type
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
typedef _Traits BioBasicSocketStream< _CharT, _Traits >::traits_type

Constructor & Destructor Documentation

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
BioBasicSocketStream< _CharT, _Traits >::BioBasicSocketStream ( ) [inline]
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
BioBasicSocketStream< _CharT, _Traits >::BioBasicSocketStream ( const BioSocket sock_) [inline, explicit]
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
BioBasicSocketStream< _CharT, _Traits >::BioBasicSocketStream ( const BioSocketAddressIn  sin_) [inline, explicit]

Construct a stream object and connect it to address _sin using a TCP connection.

Parameters:
sin_The address to connect.
template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
virtual BioBasicSocketStream< _CharT, _Traits >::~BioBasicSocketStream ( ) [inline, virtual]

Member Function Documentation

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
bool BioBasicSocketStream< _CharT, _Traits >::close ( ) [inline]

Close the connection, calling sockbuf::close()

Here is the call graph for this function:

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
bool BioBasicSocketStream< _CharT, _Traits >::connect ( const BioSocketAddressIn sin_) [inline]

Connect the stream to a given address, calling sockbuf::connect().

Here is the call graph for this function:

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
bool BioBasicSocketStream< _CharT, _Traits >::connect ( const std::string &  addr_,
uint16_t  port_ 
) [inline]

Connect the stream to a given address, calling sockbuf::connect().

Here is the call graph for this function:

template<typename _CharT , typename _Traits = std::char_traits<_CharT>>
bool BioBasicSocketStream< _CharT, _Traits >::is_connected ( ) const throw () [inline]

Return true if the stream is connected.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines