Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Port.h
Go to the documentation of this file.
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroika_Foundation_IO_Network_Port_h_
5#define _Stroika_Foundation_IO_Network_Port_h_ 1
6
7#include "Stroika/Foundation/StroikaPreComp.h"
8
9#include <cstdint>
10
11/**
12 * \file
13 *
14 * \note Code-Status: <a href="Code-Status.md#Alpha">Alpha</a>
15 *
16 * TODO:
17 */
18
20
21 /**
22 */
23 using PortType = uint16_t;
24
25 /**
26 * @see https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
27 */
28 namespace WellKnownPorts {
29
30 namespace TCP {
31 constexpr PortType kFTPData = 20;
32 constexpr PortType kFTPControl = 21;
33 constexpr PortType kSSH = 22;
34 constexpr PortType kTelnet = 23;
35 constexpr PortType kSMTP = 25;
36 constexpr PortType kDNS = 53;
37 constexpr PortType kHTTP = 80;
38 constexpr PortType kPOP3 = 110;
39 constexpr PortType kNTP = 123;
40 constexpr PortType kNETBIOS = 137;
41 constexpr PortType kSMB = 139; // NetBIOS Session Service
42 constexpr PortType kHTTPS = 443;
43 constexpr PortType kMicrosoftDS = 445; // https://en.wikipedia.org/wiki/Active_Directory, https://en.wikipedia.org/wiki/Server_Message_Block
44 constexpr PortType kModbus = 502;
45 constexpr PortType kLPD = 515; // Line Printer Daemon
46 constexpr PortType kIPP = 631; // internet printing protocol
47 constexpr PortType kDNSOverTLS = 853; // https://tools.ietf.org/html/rfc7858
48 constexpr PortType kMSSQL = 1433; // https://en.wikipedia.org/wiki/Microsoft_SQL_Server
49 constexpr PortType kRDP = 3389;
50 constexpr PortType kSIP = 5060; // SIP (https://isc.sans.edu/diary/Cyber+Security+Awareness+Month+-+Day+20+-+Ports+5060+%26+5061+-+SIP+%28VoIP%29/7405
51 constexpr PortType kVNC = 5900;
52 constexpr PortType kHTTPAlt = 8080;
53 };
54
55 }
56
57}
58
59/*
60 ********************************************************************************
61 ***************************** Implementation Details ***************************
62 ********************************************************************************
63 */
64//#include "Port.inl"
65
66#endif /*_Stroika_Foundation_IO_Network_Port_h_*/