#include <socketstream.hpp>
|
| socketbuf () |
|
| socketbuf (int sd) |
|
| socketbuf (const char hostname[], int port) |
|
virtual int | attach (int sd) |
| Attach a new socket descriptor to the socketbuf. Returns the old socket descriptor which is NOT closed. More...
|
|
int | detach () |
| Detach the current socket descriptor from the socketbuf. More...
|
|
virtual int | open (const char hostname[], int port) |
| Open a socket on the 'port' at 'hostname' and store the socket descriptor. Returns 0 if there is no error, otherwise returns -1. More...
|
|
virtual int | close () |
| Close the current socket descriptor. More...
|
|
int | getsocketdescriptor () |
| Returns the attached socket descriptor. More...
|
|
bool | is_open () |
| Returns true if the socket is open and has a valid socket descriptor. Otherwise returns false. More...
|
|
virtual | ~socketbuf () |
|
|
virtual int | sync () |
|
virtual int_type | underflow () |
|
virtual int_type | overflow (int_type c=traits_type::eof()) |
|
virtual std::streamsize | xsgetn (char_type *s__, std::streamsize n__) |
|
virtual std::streamsize | xsputn (const char_type *s__, std::streamsize n__) |
|
|
static const int | buflen = 1024 |
|
Definition at line 31 of file socketstream.hpp.
◆ socketbuf() [1/3]
mfem::socketbuf::socketbuf |
( |
| ) |
|
|
inline |
◆ socketbuf() [2/3]
mfem::socketbuf::socketbuf |
( |
int |
sd | ) |
|
|
inlineexplicit |
◆ socketbuf() [3/3]
mfem::socketbuf::socketbuf |
( |
const char |
hostname[], |
|
|
int |
port |
|
) |
| |
|
inline |
◆ ~socketbuf()
virtual mfem::socketbuf::~socketbuf |
( |
| ) |
|
|
inlinevirtual |
◆ attach()
int mfem::socketbuf::attach |
( |
int |
sd | ) |
|
|
virtual |
◆ close()
int mfem::socketbuf::close |
( |
| ) |
|
|
virtual |
◆ detach()
int mfem::socketbuf::detach |
( |
| ) |
|
|
inline |
Detach the current socket descriptor from the socketbuf.
Definition at line 61 of file socketstream.hpp.
◆ getsocketdescriptor()
int mfem::socketbuf::getsocketdescriptor |
( |
| ) |
|
|
inline |
◆ is_open()
bool mfem::socketbuf::is_open |
( |
| ) |
|
|
inline |
Returns true if the socket is open and has a valid socket descriptor. Otherwise returns false.
Definition at line 75 of file socketstream.hpp.
◆ open()
int mfem::socketbuf::open |
( |
const char |
hostname[], |
|
|
int |
port |
|
) |
| |
|
virtual |
Open a socket on the 'port' at 'hostname' and store the socket descriptor. Returns 0 if there is no error, otherwise returns -1.
Reimplemented in mfem::GnuTLS_socketbuf.
Definition at line 94 of file socketstream.cpp.
◆ overflow()
socketbuf::int_type mfem::socketbuf::overflow |
( |
int_type |
c = traits_type::eof() | ) |
|
|
protectedvirtual |
◆ sync()
int mfem::socketbuf::sync |
( |
| ) |
|
|
protectedvirtual |
◆ underflow()
socketbuf::int_type mfem::socketbuf::underflow |
( |
| ) |
|
|
protectedvirtual |
◆ xsgetn()
std::streamsize mfem::socketbuf::xsgetn |
( |
char_type * |
s__, |
|
|
std::streamsize |
n__ |
|
) |
| |
|
protectedvirtual |
◆ xsputn()
std::streamsize mfem::socketbuf::xsputn |
( |
const char_type * |
s__, |
|
|
std::streamsize |
n__ |
|
) |
| |
|
protectedvirtual |
◆ buflen
const int mfem::socketbuf::buflen = 1024 |
|
staticprotected |
◆ ibuf
char mfem::socketbuf::ibuf[buflen] |
|
protected |
◆ obuf
char mfem::socketbuf::obuf[buflen] |
|
protected |
◆ socket_descriptor
int mfem::socketbuf::socket_descriptor |
|
protected |
The documentation for this class was generated from the following files: