libnick
2025.1.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
include
network
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
10
namespace
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
Nickvision::Network
Definition
addressfamily.h:11
Nickvision::Network::SocketType
SocketType
Type of sockets.
Definition
sockettype.h:16
Nickvision::Network::SocketType::Datagram
@ Datagram
Nickvision::Network::SocketType::SequencedPacket
@ SequencedPacket
Nickvision::Network::SocketType::Stream
@ Stream
Generated by
1.12.0