00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef INCLUDED_ircd_defs_h
00035 #define INCLUDED_ircd_defs_h
00036 #include "inet_misc.h"
00037
00038
00039 #define IRCD_BUFSIZE 512
00040 #define HOSTLEN 63
00041
00042 #define PORTNAMELEN 6
00043
00044 #define USERLEN 10
00045 #define REALLEN 50
00046 #define KILLLEN 90
00047 #define LOCAL_CHANNELLEN 50
00048 #define CHANNELLEN 200
00049 #define REASONLEN 120
00050 #define KICKLEN 160
00051 #define AWAYLEN 160
00052
00053
00054 #define KEYLEN 24
00055 #define OPERNICKLEN NICKLEN*2
00056
00057 #define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5)
00058 #define MAX_DATE_STRING 32
00059 #define IRCD_MAXNS 2
00060
00061
00062 #define LOWEST_SAFE_FD 4
00063
00064 #define PLATFORMLEN 200
00065
00066 #ifdef _WIN32
00067 #define EAFNOSUPPORT WSAEAFNOSUPPORT
00068 #define EALREADY WSAEALREADY
00069 #define EINPROGRESS WSAEINPROGRESS
00070 #define EISCONN WSAEISCONN
00071 #define EMSGSIZE WSAEMSGSIZE
00072 #define EWOULDBLOCK WSAEWOULDBLOCK
00073
00074 #define _UTSNAME_LENGTH 65
00075 #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
00076 #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
00077 struct utsname
00078 {
00079 char sysname[_UTSNAME_LENGTH];
00080 char nodename[_UTSNAME_NODENAME_LENGTH];
00081 char release[_UTSNAME_LENGTH];
00082 char version[_UTSNAME_LENGTH];
00083 char machine[_UTSNAME_LENGTH];
00084 char domainname[_UTSNAME_DOMAIN_LENGTH];
00085 };
00086 int uname (struct utsname *);
00087 #endif
00088
00089
00090
00091
00092 struct irc_ssaddr
00093 {
00094 struct sockaddr_storage ss;
00095 unsigned char ss_len;
00096 in_port_t ss_port;
00097 };
00098
00099 #define REJECT_HOLD_TIME GlobalSetOptions.rejecttime
00100
00101 #endif