Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
SocketTCP Class Reference

#include <SocketTCP.hpp>

Inheritance diagram for SocketTCP:
Inheritance graph
Collaboration diagram for SocketTCP:
Collaboration graph

Public Member Functions

 SocketTCP (uint32_t port, uint32_t queueSize)
 
void setRecvTimeout (int seconds, int microseconds)
 
void createServerSocket () override
 
void createServerSocket (uint32_t port, uint32_t queueSize)
 
void send (const string &str)
 
void sendBytes (const char *data, size_t num)
 
string recv ()
 
string recv (size_t bytes)
 
string recvTimed (int timeout)
 
char * recvBytes (size_t num)
 
bool hasData ()
 
shared_ptr< SocketTCPaccept ()
 
- Public Member Functions inherited from Socket
 Socket ()
 
 Socket (int sd)
 
 ~Socket ()
 
int getSocketDescr () const noexcept
 
void setNonBlocked (bool option)
 
void close ()
 

Additional Inherited Members

- Protected Member Functions inherited from Socket
void setReuseAddress (int sd)
 
- Protected Attributes inherited from Socket
int socketDescr
 
uint32_t socketBoundPort
 

Constructor & Destructor Documentation

SocketTCP::SocketTCP ( uint32_t  port,
uint32_t  queueSize 
)
inline

Member Function Documentation

shared_ptr< SocketTCP > SocketTCP::accept ( )
noexcept

Here is the call graph for this function:

Here is the caller graph for this function:

void SocketTCP::createServerSocket ( )
overridevirtualnoexcept

Implements Socket.

void SocketTCP::createServerSocket ( uint32_t  port,
uint32_t  queueSize 
)
noexcept
bool SocketTCP::hasData ( )
noexcept

Here is the call graph for this function:

string SocketTCP::recv ( )
noexcept

Here is the caller graph for this function:

string SocketTCP::recv ( size_t  bytes)
noexcept
char * SocketTCP::recvBytes ( size_t  num)
noexcept
string SocketTCP::recvTimed ( int  timeout)
noexcept
void SocketTCP::send ( const string &  str)
noexcept
void SocketTCP::sendBytes ( const char *  data,
size_t  num 
)
noexcept
void SocketTCP::setRecvTimeout ( int  seconds,
int  microseconds 
)
noexcept

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