geekbrains_network_programming/lesson_03/header/socket.hpp

27 lines
344 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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();
};
}