]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/man/man3/socketengine.h.3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2578 e03df62e-2008...
[user/henk/code/inspircd.git] / docs / man / man3 / socketengine.h.3
1 .TH "socketengine.h" 3 "19 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*-
2 .ad l
3 .nh
4 .SH NAME
5 socketengine.h \- 
6 .SH SYNOPSIS
7 .br
8 .PP
9 \fC#include <vector>\fP
10 .br
11 \fC#include <string>\fP
12 .br
13 \fC#include 'inspircd_config.h'\fP
14 .br
15 \fC#include 'globals.h'\fP
16 .br
17 \fC#include 'inspircd.h'\fP
18 .br
19 \fC#include <sys/types.h>\fP
20 .br
21 \fC#include <sys/event.h>\fP
22 .br
23 \fC#include <sys/time.h>\fP
24 .br
25
26 .SS "Classes"
27
28 .in +1c
29 .ti -1c
30 .RI "class \fBSocketEngine\fP"
31 .br
32 .RI "\fIThe actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin. \fP"
33 .in -1c
34 .SS "Variables"
35
36 .in +1c
37 .ti -1c
38 .RI "const char \fBX_EMPTY_SLOT\fP = 0"
39 .br
40 .RI "\fIEach of these values represents a socket type in our reference table (the reference table itself is only accessible to \fBsocketengine.cpp\fP). \fP"
41 .ti -1c
42 .RI "const char \fBX_LISTEN\fP = 1"
43 .br
44 .ti -1c
45 .RI "const char \fBX_ESTAB_CLIENT\fP = 2"
46 .br
47 .ti -1c
48 .RI "const char \fBX_ESTAB_MODULE\fP = 3"
49 .br
50 .ti -1c
51 .RI "const char \fBX_ESTAB_DNS\fP = 4"
52 .br
53 .ti -1c
54 .RI "const char \fBX_READBIT\fP = 0x80"
55 .br
56 .RI "\fITo indicate that a socket is readable, we mask its top bit with this X_READBIT value. \fP"
57 .in -1c
58 .SH "Variable Documentation"
59 .PP 
60 .SS "const char \fBX_EMPTY_SLOT\fP = 0"
61 .PP
62 Each of these values represents a socket type in our reference table (the reference table itself is only accessible to \fBsocketengine.cpp\fP). 
63 .PP
64 Definition at line 41 of file socketengine.h.
65 .PP
66 Referenced by SocketEngine::GetType().
67 .SS "const char \fBX_ESTAB_CLIENT\fP = 2"
68 .PP
69 Definition at line 43 of file socketengine.h.
70 .PP
71 Referenced by AddClient().
72 .SS "const char \fBX_ESTAB_DNS\fP = 4"
73 .PP
74 Definition at line 45 of file socketengine.h.
75 .SS "const char \fBX_ESTAB_MODULE\fP = 3"
76 .PP
77 Definition at line 44 of file socketengine.h.
78 .PP
79 Referenced by InspSocket::InspSocket(), and InspSocket::Poll().
80 .SS "const char \fBX_LISTEN\fP = 1"
81 .PP
82 Definition at line 42 of file socketengine.h.
83 .SS "const char \fBX_READBIT\fP = 0x80"
84 .PP
85 To indicate that a socket is readable, we mask its top bit with this X_READBIT value. 
86 .PP
87 The socket engine can handle two types of socket, readable and writeable (error sockets are dealt with when read() and write() return negative or zero values).
88 .PP
89 Definition at line 55 of file socketengine.h.
90 .PP
91 Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), and SocketEngine::Wait().
92 .SH "Author"
93 .PP 
94 Generated automatically by Doxygen for InspIRCd from the source code.