00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : PortDefines 00006 * Package : Zeus.ZeusBase.Net 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef PortDefinesHPP 00033 #define PortDefinesHPP 00034 00035 //----------------------------------------------------------------------- 00036 //Well known ports taken from 00037 // http://www.iana.org/assignments/port-numbers 00038 //----------------------------------------------------------------------- 00039 00040 00041 //----------------------------------------------------------------------- 00042 //Well known ports for TCP 00044 #define TCPPORT_FTP_DATA 20 00045 00046 #define TCPPORT_FTP_CONTROL 21 00047 00048 #define TCPPORT_SSH 22 00049 00050 #define TCPPORT_TELNET 23 00051 00053 #define TCPPORT_SMTP 25 00054 00056 #define TCPPORT_DNS 53 00057 00059 #define TCPPORT_HTTP 80 00060 00062 #define TCPPORT_POP3 110 00063 00065 #define TCPPORT_NTP 123 00066 00068 #define TCPPORT_NETBIOS_NS 137 00069 00070 #define TCPPORT_NETBIOS_DGM 138 00071 00072 #define TCPPORT_NETBIOS_SSN 139 00073 00075 #define TCPPORT_IMAP 143 00076 00078 #define TCPPORT_IMAP 143 00079 00081 //#define TCPPORT_LDAP 389 00082 00084 #define TCPPORT_HTTPS 443 00085 00087 #define TCPPORT_PRINTER 515 00088 00090 #define TCPPORT_AUTH_SMTP 587 00091 00092 00093 //----------------------------------------------------------------------- 00094 //Well known ports for UDP 00096 #define UDPPORT_FTP_DATA 20 00097 00098 #define UDPPORT_FTP_CONTROL 21 00099 00100 #define UDPPORT_SSH 22 00101 00102 #define UDPPORT_TELNET 23 00103 00105 #define UDPPORT_SMTP 25 00106 00108 #define UDPPORT_DNS 53 00109 00111 #define UDPPORT_HTTP 80 00112 00114 #define UDPPORT_POP3 110 00115 00117 #define UDPPORT_NTP 123 00118 00120 #define UDPPORT_NETBIOS_NS 137 00121 00122 #define UDPPORT_NETBIOS_DGM 138 00123 00124 #define UDPPORT_NETBIOS_SSN 139 00125 00127 #define UDPPORT_IMAP 143 00128 00130 #define UDPPORT_LDAP 389 00131 00133 #define UDPPORT_HTTPS 443 00134 00136 #define UDPPORT_PRINTER 515 00137 00138 #endif 00139