Odamex
Setting the Standard in Multiplayer Doom
agOdalaunch::BufferedSocket Class Reference

#include <net_io.h>

Public Member Functions

 BufferedSocket ()
virtual ~BufferedSocket ()
void SetRemoteAddress (const std::string &Address, const int16_t &Port)
bool SetRemoteAddress (const std::string &Address)
void GetRemoteAddress (std::string &Address, uint16_t &Port) const
std::string GetRemoteAddress () const
int32_t SendData (const int32_t &Timeout)
int32_t GetData (const int32_t &Timeout)
uint32_t GetPing ()
bool ReadString (std::string &)
bool ReadBool (bool &)
bool Read32 (int32_t &)
bool Read16 (int16_t &)
bool Read8 (int8_t &)
bool Read32 (uint32_t &)
bool Read16 (uint16_t &)
bool Read8 (uint8_t &)
bool BadRead ()
bool WriteString (const std::string &)
bool WriteBool (const bool &)
bool Write32 (const int32_t &)
bool Write16 (const int16_t &)
bool Write8 (const int8_t &)
bool Write32 (const uint32_t &)
bool Write16 (const uint16_t &)
bool Write8 (const uint8_t &)
bool BadWrite ()
bool CanRead (const size_t &)
bool CanWrite (const size_t &)
void ResetBuffer ()
void ClearBuffer ()

Static Public Member Functions

static bool InitializeSocketAPI ()
static void ShutdownSocketAPI ()

Constructor & Destructor Documentation

BufferedSocket::BufferedSocket ( )
BufferedSocket::~BufferedSocket ( ) [virtual]

Member Function Documentation

bool agOdalaunch::BufferedSocket::BadRead ( ) [inline]
bool agOdalaunch::BufferedSocket::BadWrite ( ) [inline]
bool BufferedSocket::CanRead ( const size_t &  Bytes)
bool BufferedSocket::CanWrite ( const size_t &  Bytes)
void BufferedSocket::ClearBuffer ( )
int32_t BufferedSocket::GetData ( const int32_t Timeout)
uint32_t agOdalaunch::BufferedSocket::GetPing ( ) [inline]
void BufferedSocket::GetRemoteAddress ( std::string Address,
uint16_t Port 
) const
string BufferedSocket::GetRemoteAddress ( ) const
bool BufferedSocket::InitializeSocketAPI ( ) [static]
bool BufferedSocket::Read16 ( uint16_t Uint16)
bool BufferedSocket::Read16 ( int16_t Int16)
bool BufferedSocket::Read32 ( int32_t Int32)
bool BufferedSocket::Read32 ( uint32_t Uint32)
bool BufferedSocket::Read8 ( uint8_t Uint8)
bool BufferedSocket::Read8 ( int8_t Int8)
bool BufferedSocket::ReadBool ( bool &  val)
bool BufferedSocket::ReadString ( std::string str)
void agOdalaunch::BufferedSocket::ResetBuffer ( ) [inline]
int32_t BufferedSocket::SendData ( const int32_t Timeout)
bool BufferedSocket::SetRemoteAddress ( const std::string Address)
void BufferedSocket::SetRemoteAddress ( const std::string Address,
const int16_t Port 
)
void BufferedSocket::ShutdownSocketAPI ( ) [static]
bool BufferedSocket::Write16 ( const int16_t Int16)
bool BufferedSocket::Write16 ( const uint16_t Uint16)
bool BufferedSocket::Write32 ( const uint32_t Uint32)
bool BufferedSocket::Write32 ( const int32_t Int32)
bool BufferedSocket::Write8 ( const uint8_t Uint8)
bool BufferedSocket::Write8 ( const int8_t Int8)
bool BufferedSocket::WriteBool ( const bool &  val)
bool BufferedSocket::WriteString ( const std::string str)

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends