libnick 2025.1.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
sockettype.h
Go to the documentation of this file.
1#ifndef SOCKETTYPE_H
2#define SOCKETTYPE_H
3
4#ifdef _WIN32
5#include <Winsock2.h>
6#else
7#include <sys/socket.h>
8#endif
9
10namespace Nickvision::Network
11{
15 enum class SocketType
16 {
17 Stream = SOCK_STREAM,
18 Datagram = SOCK_DGRAM,
19#ifdef __linux__
20 SequencedPacket = SOCK_SEQPACKET
21#endif
22 };
23}
24
25#endif // SOCKETTYPE_H
Definition addressfamily.h:11
SocketType
Type of sockets.
Definition sockettype.h:16