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

a RAII wrapper for a socket. More...

#include <Socket.hpp>

Inheritance diagram for Socket:
Inheritance graph
Collaboration diagram for Socket:
Collaboration graph

Public Member Functions

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

 Socket ()
 
void close ()
 

Protected Attributes

int m_sockfd = -1
 

Friends

class Poller
 

Detailed Description

a RAII wrapper for a socket.

Constructor & Destructor Documentation

◆ ~Socket()

Socket::~Socket ( )
virtual

◆ Socket() [1/3]

Socket::Socket ( const Socket other)
delete

◆ Socket() [2/3]

Socket::Socket ( Socket &&  other)

◆ Socket() [3/3]

Socket::Socket ( )
protected

Member Function Documentation

◆ close()

void Socket::close ( )
protected

◆ getFd()

int Socket::getFd ( ) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Socket & Socket::operator= ( Socket &&  other)

◆ operator==() [1/2]

bool Socket::operator== ( const int &  fd) const

◆ operator==() [2/2]

bool Socket::operator== ( const Socket other) const

Friends And Related Function Documentation

◆ Poller

friend class Poller
friend

Member Data Documentation

◆ m_sockfd

int Socket::m_sockfd = -1
protected

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