This is not my favourite design but when using TCP/IP I belive this
to
be extra-ordinary: [lib.sockstream]
The header <sockstream> defines four class templates and six types
that associate stream buffers with sockets and
assists reading and writing to and from sockets.
In addittion <sockstream> defines three operators that extracts
connection-oriented streams from
connection-oriented server-streams.
Header <sockstream> synopsis
namespace sock {
template
class basic_socketbuf;
typedef basic_socketbuf<char> socketbuf;
typedef basic_socketbuf wsocketbuf;
template
class basic_isocketstream;
typedef basic_isocketstream<char> isocketstream;
typedef basic_isocketstream wisocketstream;
template
class basic_osocketstream;
typedef basic_osocketstream<char> osocketstream
typedef basic_osocketstream wosocketstream;
template
class basic_socketstream;
typedef basic_socketstream<char> socketstream;
typedef basic_socketstream wsocketstream;
template
basic_isocketstream& operator >>
(basic_isocketstream& at,
basic_isocketstream& cs);
template
basic_isocketstream& operator >>
(basic_isocketstream& at,
basic_osocketstream& cs);
template
basic_isocketstream& operator >>
(basic_isocketstream& at,
basic_socketstream& cs);
}
Please reply to mailto:nlj@adr.dk
[This is a Boost library proposal. - Mod]