MFEM  v3.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | List of all members
mfem::socketbuf Class Reference

#include <socketstream.hpp>

Inheritance diagram for mfem::socketbuf:
[legend]
Collaboration diagram for mfem::socketbuf:
[legend]

Public Member Functions

 socketbuf ()
 
 socketbuf (int sd)
 
 socketbuf (const char hostname[], int port)
 
int attach (int sd)
 
int detach ()
 
int open (const char hostname[], int port)
 
int close ()
 
int getsocketdescriptor ()
 
bool is_open ()
 
 ~socketbuf ()
 

Protected Member Functions

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)
 

Detailed Description

Definition at line 21 of file socketstream.hpp.

Constructor & Destructor Documentation

mfem::socketbuf::socketbuf ( )
inline

Definition at line 29 of file socketstream.hpp.

mfem::socketbuf::socketbuf ( int  sd)
inlineexplicit

Definition at line 34 of file socketstream.hpp.

mfem::socketbuf::socketbuf ( const char  hostname[],
int  port 
)
inline

Definition at line 40 of file socketstream.hpp.

mfem::socketbuf::~socketbuf ( )
inline

Definition at line 60 of file socketstream.hpp.

Member Function Documentation

int mfem::socketbuf::attach ( int  sd)

Attach a new socket descriptor to the socketbuf. Returns the old socket descriptor which is NOT closed.

Definition at line 39 of file socketstream.cpp.

int mfem::socketbuf::close ( )

Definition at line 97 of file socketstream.cpp.

int mfem::socketbuf::detach ( )
inline

Definition at line 50 of file socketstream.hpp.

int mfem::socketbuf::getsocketdescriptor ( )
inline

Definition at line 56 of file socketstream.hpp.

bool mfem::socketbuf::is_open ( )
inline

Definition at line 58 of file socketstream.hpp.

int mfem::socketbuf::open ( const char  hostname[],
int  port 
)

Definition at line 49 of file socketstream.cpp.

socketbuf::int_type mfem::socketbuf::overflow ( int_type  c = traits_type::eof())
protectedvirtual

Definition at line 156 of file socketstream.cpp.

int mfem::socketbuf::sync ( )
protectedvirtual

Definition at line 109 of file socketstream.cpp.

socketbuf::int_type mfem::socketbuf::underflow ( )
protectedvirtual

Definition at line 135 of file socketstream.cpp.

std::streamsize mfem::socketbuf::xsgetn ( char_type *  __s,
std::streamsize  __n 
)
protectedvirtual

Definition at line 171 of file socketstream.cpp.

std::streamsize mfem::socketbuf::xsputn ( const char_type *  __s,
std::streamsize  __n 
)
protectedvirtual

Definition at line 205 of file socketstream.cpp.


The documentation for this class was generated from the following files: