#include <basic_socketbuf.h>
Inheritance diagram for ss::basic_socketbuf< _CharT, _Traits >:


Public Types | |
|
typedef std::basic_streambuf< char_type, traits_type > | __streambuf_type |
|
typedef basic_socketbuf< char_type, traits_type > | __socketbuf_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_socketbuf () | |
| Default constructor. | |
| basic_socketbuf (sockets_base::family __f, sockets_base::style __s) | |
| Constructor. | |
| virtual | ~basic_socketbuf () |
| Destructor. | |
| template<typename AddressT> | |
| __socketbuf_type * | connect (AddressT &__addr) |
| Connect to remote address. | |
| bool | is_open () const throw () |
| Checks if socket is open. | |
| __socketbuf_type * | shutdown (sockets_base::shutmode __mode=sockets_base::rw) throw () |
| Shut the socket down. | |
| basic_socket & | socket () |
| Return underlying socket. | |
| sockets_base::flag | setf (sockets_base::flag __f) |
| Set I/O flags. | |
Protected Member Functions | |
| basic_socketbuf (basic_socket::descriptor_t descriptor) | |
| Constructor. | |
| virtual int_type | underflow () |
| Fetches more data from the connection. | |
| virtual int_type | uflow () |
| Fetches more data from the connection. | |
| virtual int_type | overflow (int_type __c=traits_type::eof()) |
| Consumes data from the buffer; writes to the connection. | |
| virtual __streambuf_type * | setbuf (char_type *__s, std::streamsize __n) |
| Manipulates the buffer. | |
| virtual int | sync () |
| Synchronizes the buffer arrays with the controlled sequences. | |
| virtual std::streamsize | showmanyc () |
| Investigating the data available. | |
| virtual int_type | pbackfail (int_type=traits_type::eof()) |
| Tries to back up the input sequence. | |
Friends | |
| class | basic_socketstream |
This class maintains separate input and output sequences associated with a network socket.
Definition at line 50 of file basic_socketbuf.h.
|
|||||
|
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_streambuf< _CharT, _Traits >. Definition at line 63 of file basic_socketbuf.h. |
|
|||||
|
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_streambuf< _CharT, _Traits >. Definition at line 66 of file basic_socketbuf.h. |
|
|||||
|
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_streambuf< _CharT, _Traits >. Definition at line 68 of file basic_socketbuf.h. |
|
|||||
|
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_streambuf< _CharT, _Traits >. Definition at line 67 of file basic_socketbuf.h. |
|
|||||
|
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_streambuf< _CharT, _Traits >. Definition at line 64 of file basic_socketbuf.h. |
|
|||||||||
|
Default constructor. Allocates a socket of default family and style. Definition at line 82 of file basic_socketbuf.h. |
|
||||||||||||||||
|
Constructor.
Is there meaning in a style other than stream? Definition at line 100 of file basic_socketbuf.h. |
|
||||||||||
|
Constructor.
Definition at line 208 of file basic_socketbuf.h. |
|
||||||||||||||
|
Connect to remote address.
Definition at line 125 of file basic_socketbuf.h. Referenced by ss::basic_osocketstream< _CharT, _Traits >::connect(), ss::basic_isocketstream< _CharT, _Traits >::connect(), and ss::basic_socketstream< _CharT, _Traits >::connect(). |
|
||||||||||
|
Consumes data from the buffer; writes to the connection.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 301 of file basic_socketbuf.h. Referenced by ss::basic_socketbuf< char_type, traits_type >::sync(). |
|
||||||||||
|
Tries to back up the input sequence.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 406 of file basic_socketbuf.h. |
|
||||||||||||||||
|
Manipulates the buffer.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 342 of file basic_socketbuf.h. |
|
||||||||||
|
Set I/O flags.
Definition at line 192 of file basic_socketbuf.h. Referenced by ss::basic_isocketstream< _CharT, _Traits >::operator<<(), ss::basic_socketstream< _CharT, _Traits >::operator<<(), ss::basic_osocketstream< _CharT, _Traits >::operator>>(), and ss::basic_socketstream< _CharT, _Traits >::operator>>(). |
|
|||||||||
|
Investigating the data available.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 384 of file basic_socketbuf.h. |
|
||||||||||
|
Shut the socket down.
This will close the connection with the peer for sending, receiving or both. Definition at line 167 of file basic_socketbuf.h. Referenced by ss::basic_osocketstream< _CharT, _Traits >::shutdown(), ss::basic_isocketstream< _CharT, _Traits >::shutdown(), and ss::basic_socketstream< _CharT, _Traits >::shutdown(). |
|
|||||||||
|
Return underlying socket.
Definition at line 181 of file basic_socketbuf.h. |
|
|||||||||
|
Fetches more data from the connection.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 278 of file basic_socketbuf.h. |
|
|||||||||
|
Fetches more data from the connection.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 229 of file basic_socketbuf.h. Referenced by ss::basic_socketbuf< char_type, traits_type >::uflow(). |
1.4.3