Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
OpenSkyNet::Utils::Socket Class Reference

#include <USocket.h>

Public Member Functions

 Socket ()
 
bool create ()
 
bool connectTo (const char *ipAddr_, unsigned int port_)
 
bool listenTo (const char *ipAddr_, unsigned int port_)
 
bool acceptConnection ()
 
bool closeConnection ()
 
bool sendData (const char *buffer_, OpenSkyNet::Utils::uint bufferLen_)
 
int recvData (char *buffer_, OpenSkyNet::Utils::uint bufferLen_)
 
bool isConnected () const
 
bool isConnectedAsServer () const
 
bool isConnectedAsClient () const
 
const char * getLastErrorString () const
 

Static Public Member Functions

static bool init (char(&errorBuffer_)[MAX_STRING_SIZE])
 
static void shutDown ()
 

Detailed Description

A TCP socket used by either a client or a server that can accept only one connection

Constructor & Destructor Documentation

OpenSkyNet::Utils::Socket::Socket ( )
inline

Member Function Documentation

bool OpenSkyNet::Utils::Socket::acceptConnection ( )
inline
bool OpenSkyNet::Utils::Socket::closeConnection ( )
inline
bool OpenSkyNet::Utils::Socket::connectTo ( const char *  ipAddr_,
unsigned int  port_ 
)
inline
bool OpenSkyNet::Utils::Socket::create ( )
inline
const char* OpenSkyNet::Utils::Socket::getLastErrorString ( ) const
inline
static bool OpenSkyNet::Utils::Socket::init ( char(&)  errorBuffer_[MAX_STRING_SIZE])
inlinestatic
bool OpenSkyNet::Utils::Socket::isConnected ( ) const
inline
bool OpenSkyNet::Utils::Socket::isConnectedAsClient ( ) const
inline
bool OpenSkyNet::Utils::Socket::isConnectedAsServer ( ) const
inline
bool OpenSkyNet::Utils::Socket::listenTo ( const char *  ipAddr_,
unsigned int  port_ 
)
inline
int OpenSkyNet::Utils::Socket::recvData ( char *  buffer_,
OpenSkyNet::Utils::uint  bufferLen_ 
)
inline
bool OpenSkyNet::Utils::Socket::sendData ( const char *  buffer_,
OpenSkyNet::Utils::uint  bufferLen_ 
)
inline
static void OpenSkyNet::Utils::Socket::shutDown ( )
inlinestatic

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