VOX
A little voxel engine
Loading...
Searching...
No Matches
ConnectionSocket Class Reference

#include <ConnectionSocket.hpp>

Inheritance diagram for ConnectionSocket:
Inheritance graph
Collaboration diagram for ConnectionSocket:
Collaboration graph

Public Member Functions

 ConnectionSocket (int sockfd)
 
virtual ~ConnectionSocket ()
 
 ConnectionSocket (const ConnectionSocket &other)=delete
 
ConnectionSocketoperator= (const ConnectionSocket &other)=delete
 
 ConnectionSocket (ConnectionSocket &&other)
 
ConnectionSocketoperator= (ConnectionSocket &&other)
 
ssize_t send (const char *data, size_t size)
 
ssize_t recv (char *data, size_t size)
 
- Public Member Functions inherited from Socket
virtual ~Socket ()
 
int getFd () const
 
 Socket (const Socket &other)=delete
 
Socketoperator= (const Socket &other)=delete
 
 Socket (Socket &&other)
 
Socketoperator= (Socket &&other)
 
bool operator== (const Socket &other) const
 
bool operator== (const int &fd) const
 

Protected Member Functions

 ConnectionSocket ()
 
- Protected Member Functions inherited from Socket
 Socket ()
 
void close ()
 

Additional Inherited Members

- Protected Attributes inherited from Socket
int m_sockfd = -1
 

Constructor & Destructor Documentation

◆ ConnectionSocket() [1/4]

ConnectionSocket::ConnectionSocket ( int  sockfd)

◆ ~ConnectionSocket()

ConnectionSocket::~ConnectionSocket ( )
virtual

◆ ConnectionSocket() [2/4]

ConnectionSocket::ConnectionSocket ( const ConnectionSocket other)
delete

◆ ConnectionSocket() [3/4]

ConnectionSocket::ConnectionSocket ( ConnectionSocket &&  other)

◆ ConnectionSocket() [4/4]

ConnectionSocket::ConnectionSocket ( )
protected

Member Function Documentation

◆ operator=() [1/2]

ConnectionSocket & ConnectionSocket::operator= ( ConnectionSocket &&  other)

◆ operator=() [2/2]

ConnectionSocket & ConnectionSocket::operator= ( const ConnectionSocket other)
delete

◆ recv()

ssize_t ConnectionSocket::recv ( char *  data,
size_t  size 
)

◆ send()

ssize_t ConnectionSocket::send ( const char *  data,
size_t  size 
)

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