34 Socket(
int domain,
int type,
int protocol);
An encapsulation of the socket file descriptor.
Definition Socket.hpp:25
void operator=(int sockfd)
Sets the socket file descriptor.
Definition Socket.cpp:73
Socket(int domain, int type, int protocol)
Constructor for Socket class.
Definition Socket.cpp:23
void operator()(int sockfd)
Sets the socket file descriptor.
Definition Socket.cpp:64
int getSocket() const
Gets the socket file descriptor.
Definition Socket.cpp:55
~Socket()
Deleted copy constructor.
Definition Socket.cpp:45
bool operator==(int sockfd) const
Compares the socket file descriptor.
Definition Socket.cpp:84