27 lines
344 B
C++
27 lines
344 B
C++
/*
|
||
* 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();
|
||
};
|
||
|
||
}
|