libnick
2025.1.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
include
network
addressfamily.h
Go to the documentation of this file.
1
#ifndef ADDRESSFAMILY_H
2
#define ADDRESSFAMILY_H
3
4
#ifdef _WIN32
5
#include <Winsock2.h>
6
#else
7
#include <sys/socket.h>
8
#endif
9
10
namespace
Nickvision::Network
11
{
15
enum class
AddressFamily
16
{
17
#ifdef _WIN32
18
Pipe
,
19
#else
20
Unix
= AF_UNIX,
21
#endif
22
IPv4
= AF_INET
23
};
24
}
25
26
#endif
//ADDRESSFAMILY_H
Nickvision::Network
Definition
addressfamily.h:11
Nickvision::Network::AddressFamily
AddressFamily
Type of address that can be used by a socket.
Definition
addressfamily.h:16
Nickvision::Network::AddressFamily::Pipe
@ Pipe
Nickvision::Network::AddressFamily::IPv4
@ IPv4
Nickvision::Network::AddressFamily::Unix
@ Unix
Generated by
1.12.0