geekbrains_network_programming/lesson_03/header/socket.hpp

27 lines
344 B
C++
Raw Normal View History

/*
* socket.hpp
*
* Created on: 5 сент. 2022 г.
* Author: alexander
*/
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
namespace zh {
class Socket
{
private:
int _sockfd;
public:
Socket(const int domain, const int type, const int protocol);
operator int() const;
~Socket();
};
}