VOX
A little voxel engine
Loading...
Searching...
No Matches
ConnectionSocket.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Socket.hpp"
4
5class ConnectionSocket : public Socket
6{
7public:
8 ConnectionSocket(int sockfd);
9 virtual ~ConnectionSocket();
10
11 ConnectionSocket(const ConnectionSocket& other) = delete;
13
16
17 ssize_t send(const char *data, size_t size);
18 ssize_t recv(char *data, size_t size);
19protected:
21private:
22};
Definition: ConnectionSocket.hpp:6
ssize_t recv(char *data, size_t size)
Definition: ConnectionSocket.cpp:34
ssize_t send(const char *data, size_t size)
Definition: ConnectionSocket.cpp:29
ConnectionSocket(const ConnectionSocket &other)=delete
ConnectionSocket()
Definition: ConnectionSocket.cpp:3
ConnectionSocket & operator=(const ConnectionSocket &other)=delete
virtual ~ConnectionSocket()
Definition: ConnectionSocket.cpp:14
a RAII wrapper for a socket.
Definition: Socket.hpp:17