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

A class that represents a client socket. Connects to a server. More...

#include <ClientSocket.hpp>

Inheritance diagram for ClientSocket:
Inheritance graph
Collaboration diagram for ClientSocket:
Collaboration graph

Public Member Functions

 ClientSocket (const char *address, int port)
 
virtual ~ClientSocket ()
 
 ClientSocket (const ClientSocket &other)=delete
 
ClientSocketoperator= (const ClientSocket &other)=delete
 
 ClientSocket (ClientSocket &&other)
 
ClientSocketoperator= (ClientSocket &&other)
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from Socket
 Socket ()
 
void close ()
 
- Protected Attributes inherited from Socket
int m_sockfd = -1
 

Detailed Description

A class that represents a client socket. Connects to a server.

Constructor & Destructor Documentation

◆ ClientSocket() [1/3]

ClientSocket::ClientSocket ( const char *  address,
int  port 
)

◆ ~ClientSocket()

ClientSocket::~ClientSocket ( )
virtual

◆ ClientSocket() [2/3]

ClientSocket::ClientSocket ( const ClientSocket other)
delete

◆ ClientSocket() [3/3]

ClientSocket::ClientSocket ( ClientSocket &&  other)

Member Function Documentation

◆ operator=() [1/2]

ClientSocket & ClientSocket::operator= ( ClientSocket &&  other)

◆ operator=() [2/2]

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

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