Woman, Life, Freedom


Async BSD Sockets Library
Library protected and public interface header documentation
network_socket.h
1#ifndef NETWORK_SOCKET_H
2#define NETWORK_SOCKET_H
3
4#include <string>
5#include <stdint.h>
6#include <fcntl.h>
7#include "./communicator.h"
8
9namespace AsyncBsdSocketLib
10{
13 {
14 protected:
16 const std::string IpAddress;
17
19 const uint16_t Port;
20
24 NetworkSocket(std::string ipAddress, uint16_t port);
25
26 public:
27 virtual ~NetworkSocket() noexcept = default;
28 };
29}
30
31#endif
Communication method (i.e., network sockets and named pipes)
Definition: communicator.h:10
TCP/IP network socket.
Definition: network_socket.h:13
const uint16_t Port
Listening/Connecting port number for server/client.
Definition: network_socket.h:19
const std::string IpAddress
Listening/Connecting IP address for server/client.
Definition: network_socket.h:16
NetworkSocket(std::string ipAddress, uint16_t port)
Constructor.