eventmachine 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +281 -0
- data/README +69 -0
- data/RELEASE_NOTES +18 -0
- data/doc/classes/Echo.html +180 -0
- data/doc/classes/Echo.src/M000033.html +23 -0
- data/doc/classes/Echo.src/M000034.html +19 -0
- data/doc/classes/Echo.src/M000035.html +19 -0
- data/doc/classes/Echo.src/M000036.html +18 -0
- data/doc/classes/EventMachine.html +369 -0
- data/doc/classes/EventMachine.src/M000002.html +24 -0
- data/doc/classes/EventMachine.src/M000003.html +24 -0
- data/doc/classes/EventMachine.src/M000004.html +26 -0
- data/doc/classes/EventMachine.src/M000005.html +21 -0
- data/doc/classes/EventMachine.src/M000006.html +23 -0
- data/doc/classes/EventMachine.src/M000007.html +28 -0
- data/doc/classes/EventMachine.src/M000008.html +20 -0
- data/doc/classes/EventMachine.src/M000009.html +19 -0
- data/doc/classes/EventMachine.src/M000010.html +18 -0
- data/doc/classes/EventMachine.src/M000011.html +18 -0
- data/doc/classes/EventMachine/Connection.html +341 -0
- data/doc/classes/EventMachine/Connection.src/M000020.html +19 -0
- data/doc/classes/EventMachine/Connection.src/M000021.html +17 -0
- data/doc/classes/EventMachine/Connection.src/M000022.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000023.html +17 -0
- data/doc/classes/EventMachine/Connection.src/M000024.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000025.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000026.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000027.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000028.html +17 -0
- data/doc/classes/EventMachine/Connection.src/M000029.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000030.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000031.html +18 -0
- data/doc/classes/EventMachine/Connection.src/M000032.html +18 -0
- data/doc/classes/EventMachine/ConnectionAlreadyBound.html +111 -0
- data/doc/classes/EventMachine/ConnectionNotBound.html +111 -0
- data/doc/classes/EventMachine/Connections.html +292 -0
- data/doc/classes/EventMachine/Connections.src/M000012.html +20 -0
- data/doc/classes/EventMachine/Connections.src/M000013.html +23 -0
- data/doc/classes/EventMachine/Connections.src/M000014.html +23 -0
- data/doc/classes/EventMachine/Connections.src/M000015.html +24 -0
- data/doc/classes/EventMachine/Connections.src/M000016.html +19 -0
- data/doc/classes/EventMachine/Connections.src/M000017.html +21 -0
- data/doc/classes/EventMachine/Connections.src/M000018.html +19 -0
- data/doc/classes/EventMachine/Connections.src/M000019.html +20 -0
- data/doc/classes/EventMachine/EventCodes.html +133 -0
- data/doc/classes/EventMachine/NoConnectionMade.html +111 -0
- data/doc/classes/EventMachine/NoHandlerForAcceptedConnection.html +111 -0
- data/doc/classes/EventMachine/NoServerCreated.html +111 -0
- data/doc/classes/EventMachine/TimerNotInstalled.html +111 -0
- data/doc/classes/EventMachine/TooManyAcceptors.html +111 -0
- data/doc/classes/EventMachine/TooManyTimersPending.html +111 -0
- data/doc/classes/EventMachine/UnknownTimerFired.html +111 -0
- data/doc/classes/Zzz.html +131 -0
- data/doc/classes/Zzz.src/M000001.html +18 -0
- data/doc/created.rid +1 -0
- data/doc/files/binder_cpp.html +101 -0
- data/doc/files/ed_cpp.html +101 -0
- data/doc/files/em_cpp.html +101 -0
- data/doc/files/event_machine_rb.html +118 -0
- data/doc/files/g_rb.html +108 -0
- data/doc/files/lib/eventmachine_rb.html +114 -0
- data/doc/files/libmain_cpp.html +101 -0
- data/doc/files/sigs_cpp.html +101 -0
- data/doc/files/tests/testem_rb.html +110 -0
- data/doc/fr_class_index.html +41 -0
- data/doc/fr_file_index.html +35 -0
- data/doc/fr_method_index.html +62 -0
- data/doc/index.html +24 -0
- data/ext/libeventmachine.so +0 -0
- data/lib/eventmachine.rb +631 -0
- data/tests/testem.rb +5 -0
- metadata +121 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>receive_data (Echo)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File event_machine.rb, line 277</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">receive_data</span> <span class="ruby-identifier">data</span>
|
15
|
+
<span class="ruby-ivar">@bytes</span> <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>; <span class="ruby-ivar">@bytes</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">length</span>
|
16
|
+
<span class="ruby-identifier">send_data</span> <span class="ruby-node">"<#{data.gsub(/[\r\n]+/m,"$")}>[Total:#{@bytes}]\r\n"</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/QUIT/i</span>
|
18
|
+
<span class="ruby-identifier">send_data</span> <span class="ruby-value str">"I'm going down\r\n"</span>
|
19
|
+
<span class="ruby-identifier">close_connection_after_writing</span>
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>post_init (Echo)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File g.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post_init</span>
|
15
|
+
<span class="ruby-identifier">p</span> <span class="ruby-value str">"Howdy"</span>
|
16
|
+
<span class="ruby-constant">EventMachine</span><span class="ruby-operator">::</span><span class="ruby-identifier">stop</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>receive_data (Echo)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File g.rb, line 10</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">receive_data</span> <span class="ruby-identifier">data</span>
|
15
|
+
<span class="ruby-identifier">p</span> <span class="ruby-identifier">respond_to?</span>( <span class="ruby-identifier">:post_init</span> )
|
16
|
+
<span class="ruby-identifier">p</span> <span class="ruby-identifier">data</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>unbind (Echo)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File g.rb, line 15</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbind</span>
|
15
|
+
<span class="ruby-identifier">p</span> <span class="ruby-value str">"UNBIND"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,369 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: EventMachine</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">EventMachine</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/eventmachine_rb.html">
|
59
|
+
lib/eventmachine.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../files/event_machine_rb.html">
|
63
|
+
event_machine.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
<!-- banner header -->
|
72
|
+
|
73
|
+
<div id="bodyContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<div id="contextContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="method-list">
|
84
|
+
<h3 class="section-bar">Methods</h3>
|
85
|
+
|
86
|
+
<div class="name-list">
|
87
|
+
<a href="#M000004">add_periodic_timer</a>
|
88
|
+
<a href="#M000008">add_timer</a>
|
89
|
+
<a href="#M000003">add_timer</a>
|
90
|
+
<a href="#M000006">connect</a>
|
91
|
+
<a href="#M000010">connect</a>
|
92
|
+
<a href="#M000007">connection_callback</a>
|
93
|
+
<a href="#M000002">run</a>
|
94
|
+
<a href="#M000009">run</a>
|
95
|
+
<a href="#M000005">start_server</a>
|
96
|
+
<a href="#M000011">start_server</a>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<!-- if includes -->
|
104
|
+
|
105
|
+
<div id="section">
|
106
|
+
|
107
|
+
<div id="class-list">
|
108
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
109
|
+
|
110
|
+
Module <a href="EventMachine/EventCodes.html" class="link">EventMachine::EventCodes</a><br />
|
111
|
+
Class <a href="EventMachine/Connection.html" class="link">EventMachine::Connection</a><br />
|
112
|
+
Class <a href="EventMachine/ConnectionAlreadyBound.html" class="link">EventMachine::ConnectionAlreadyBound</a><br />
|
113
|
+
Class <a href="EventMachine/ConnectionNotBound.html" class="link">EventMachine::ConnectionNotBound</a><br />
|
114
|
+
Class <a href="EventMachine/Connections.html" class="link">EventMachine::Connections</a><br />
|
115
|
+
Class <a href="EventMachine/NoConnectionMade.html" class="link">EventMachine::NoConnectionMade</a><br />
|
116
|
+
Class <a href="EventMachine/NoHandlerForAcceptedConnection.html" class="link">EventMachine::NoHandlerForAcceptedConnection</a><br />
|
117
|
+
Class <a href="EventMachine/NoServerCreated.html" class="link">EventMachine::NoServerCreated</a><br />
|
118
|
+
Class <a href="EventMachine/TimerNotInstalled.html" class="link">EventMachine::TimerNotInstalled</a><br />
|
119
|
+
Class <a href="EventMachine/TooManyAcceptors.html" class="link">EventMachine::TooManyAcceptors</a><br />
|
120
|
+
Class <a href="EventMachine/TooManyTimersPending.html" class="link">EventMachine::TooManyTimersPending</a><br />
|
121
|
+
Class <a href="EventMachine/UnknownTimerFired.html" class="link">EventMachine::UnknownTimerFired</a><br />
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div id="constants-list">
|
126
|
+
<h3 class="section-bar">Constants</h3>
|
127
|
+
|
128
|
+
<div class="name-list">
|
129
|
+
<table summary="Constants">
|
130
|
+
<tr class="top-aligned-row context-row">
|
131
|
+
<td class="context-item-name">InitializeLibrary</td>
|
132
|
+
<td>=</td>
|
133
|
+
<td class="context-item-value">extern "void initialize_library (void*)"</td>
|
134
|
+
</tr>
|
135
|
+
<tr class="top-aligned-row context-row">
|
136
|
+
<td class="context-item-name">ReleaseLibrary</td>
|
137
|
+
<td>=</td>
|
138
|
+
<td class="context-item-value">extern "void release_library()"</td>
|
139
|
+
</tr>
|
140
|
+
<tr class="top-aligned-row context-row">
|
141
|
+
<td class="context-item-name">RunMachine</td>
|
142
|
+
<td>=</td>
|
143
|
+
<td class="context-item-value">extern "void run_machine()"</td>
|
144
|
+
</tr>
|
145
|
+
<tr class="top-aligned-row context-row">
|
146
|
+
<td class="context-item-name">InstallOneshotTimer</td>
|
147
|
+
<td>=</td>
|
148
|
+
<td class="context-item-value">extern "const char *install_oneshot_timer (int)"</td>
|
149
|
+
</tr>
|
150
|
+
<tr class="top-aligned-row context-row">
|
151
|
+
<td class="context-item-name">ConnectToServer</td>
|
152
|
+
<td>=</td>
|
153
|
+
<td class="context-item-value">extern "const char *connect_to_server (const char*, int)"</td>
|
154
|
+
</tr>
|
155
|
+
<tr class="top-aligned-row context-row">
|
156
|
+
<td class="context-item-name">CreateTcpServer</td>
|
157
|
+
<td>=</td>
|
158
|
+
<td class="context-item-value">extern "const char *create_tcp_server (const char*, int)"</td>
|
159
|
+
</tr>
|
160
|
+
<tr class="top-aligned-row context-row">
|
161
|
+
<td class="context-item-name">SendDataToConnection</td>
|
162
|
+
<td>=</td>
|
163
|
+
<td class="context-item-value">extern "int send_data_to_connection (const char*, const char*, int)"</td>
|
164
|
+
</tr>
|
165
|
+
<tr class="top-aligned-row context-row">
|
166
|
+
<td class="context-item-name">CloseConnection</td>
|
167
|
+
<td>=</td>
|
168
|
+
<td class="context-item-value">extern "void close_connection (const char*, int)"</td>
|
169
|
+
</tr>
|
170
|
+
<tr class="top-aligned-row context-row">
|
171
|
+
<td class="context-item-name">ConnectionCallback</td>
|
172
|
+
<td>=</td>
|
173
|
+
<td class="context-item-value">callback "void connection_callback (const char*, int, const void*, int)"</td>
|
174
|
+
</tr>
|
175
|
+
</table>
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<!-- if method_list -->
|
185
|
+
<div id="methods">
|
186
|
+
<h3 class="section-bar">Public Class methods</h3>
|
187
|
+
|
188
|
+
<div id="method-M000004" class="method-detail">
|
189
|
+
<a name="M000004"></a>
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<a href="EventMachine.src/M000004.html" target="Code" class="method-signature"
|
193
|
+
onclick="popupCode('EventMachine.src/M000004.html');return false;">
|
194
|
+
<span class="method-name">add_periodic_timer</span><span class="method-args">(*args, &block)</span>
|
195
|
+
</a>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div class="method-description">
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
|
202
|
+
<div id="method-M000008" class="method-detail">
|
203
|
+
<a name="M000008"></a>
|
204
|
+
|
205
|
+
<div class="method-heading">
|
206
|
+
<a href="EventMachine.src/M000008.html" target="Code" class="method-signature"
|
207
|
+
onclick="popupCode('EventMachine.src/M000008.html');return false;">
|
208
|
+
<span class="method-name">add_timer</span><span class="method-args">(*args, &block)</span>
|
209
|
+
</a>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
<div class="method-description">
|
213
|
+
<p>
|
214
|
+
<a href="EventMachine.html#M000003">add_timer</a> The first argument is a
|
215
|
+
delay interval in seconds. If the second arg is given, it has to be a proc.
|
216
|
+
If there is only one argument, then the block is used.
|
217
|
+
</p>
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
<div id="method-M000003" class="method-detail">
|
222
|
+
<a name="M000003"></a>
|
223
|
+
|
224
|
+
<div class="method-heading">
|
225
|
+
<a href="EventMachine.src/M000003.html" target="Code" class="method-signature"
|
226
|
+
onclick="popupCode('EventMachine.src/M000003.html');return false;">
|
227
|
+
<span class="method-name">add_timer</span><span class="method-args">(*args, &block)</span>
|
228
|
+
</a>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div class="method-description">
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div id="method-M000006" class="method-detail">
|
236
|
+
<a name="M000006"></a>
|
237
|
+
|
238
|
+
<div class="method-heading">
|
239
|
+
<a href="EventMachine.src/M000006.html" target="Code" class="method-signature"
|
240
|
+
onclick="popupCode('EventMachine.src/M000006.html');return false;">
|
241
|
+
<span class="method-name">connect</span><span class="method-args">(server, port, handler=nil)</span>
|
242
|
+
</a>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<div class="method-description">
|
246
|
+
<p>
|
247
|
+
EventMachine::connect initiates a TCP connection to a remote server and
|
248
|
+
sets up event-handling for the connection. It internally creates an object
|
249
|
+
that should not be handled by the caller. HOWEVER, it’s often
|
250
|
+
convenient to get the object to set up interfacing to other objects in the
|
251
|
+
system. We return the newly-created anonymous-class object to the caller.
|
252
|
+
It’s expected that a considerable amount of code will depend on this
|
253
|
+
behavior, so don’t change it.
|
254
|
+
</p>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div id="method-M000010" class="method-detail">
|
259
|
+
<a name="M000010"></a>
|
260
|
+
|
261
|
+
<div class="method-heading">
|
262
|
+
<a href="EventMachine.src/M000010.html" target="Code" class="method-signature"
|
263
|
+
onclick="popupCode('EventMachine.src/M000010.html');return false;">
|
264
|
+
<span class="method-name">connect</span><span class="method-args">(server, port, handler=nil)</span>
|
265
|
+
</a>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
<div class="method-description">
|
269
|
+
<p>
|
270
|
+
connect Return a new connection (if any) to the caller.
|
271
|
+
</p>
|
272
|
+
</div>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<div id="method-M000002" class="method-detail">
|
276
|
+
<a name="M000002"></a>
|
277
|
+
|
278
|
+
<div class="method-heading">
|
279
|
+
<a href="EventMachine.src/M000002.html" target="Code" class="method-signature"
|
280
|
+
onclick="popupCode('EventMachine.src/M000002.html');return false;">
|
281
|
+
<span class="method-name">run</span><span class="method-args">(&block)</span>
|
282
|
+
</a>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
<div class="method-description">
|
286
|
+
</div>
|
287
|
+
</div>
|
288
|
+
|
289
|
+
<div id="method-M000009" class="method-detail">
|
290
|
+
<a name="M000009"></a>
|
291
|
+
|
292
|
+
<div class="method-heading">
|
293
|
+
<a href="EventMachine.src/M000009.html" target="Code" class="method-signature"
|
294
|
+
onclick="popupCode('EventMachine.src/M000009.html');return false;">
|
295
|
+
<span class="method-name">run</span><span class="method-args">(&block)</span>
|
296
|
+
</a>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
<div class="method-description">
|
300
|
+
<p>
|
301
|
+
run Takes an optional block which if given will execute right after the
|
302
|
+
Event Machine is initialized.
|
303
|
+
</p>
|
304
|
+
</div>
|
305
|
+
</div>
|
306
|
+
|
307
|
+
<div id="method-M000005" class="method-detail">
|
308
|
+
<a name="M000005"></a>
|
309
|
+
|
310
|
+
<div class="method-heading">
|
311
|
+
<a href="EventMachine.src/M000005.html" target="Code" class="method-signature"
|
312
|
+
onclick="popupCode('EventMachine.src/M000005.html');return false;">
|
313
|
+
<span class="method-name">start_server</span><span class="method-args">(server, port, handler=nil)</span>
|
314
|
+
</a>
|
315
|
+
</div>
|
316
|
+
|
317
|
+
<div class="method-description">
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
<div id="method-M000011" class="method-detail">
|
322
|
+
<a name="M000011"></a>
|
323
|
+
|
324
|
+
<div class="method-heading">
|
325
|
+
<a href="EventMachine.src/M000011.html" target="Code" class="method-signature"
|
326
|
+
onclick="popupCode('EventMachine.src/M000011.html');return false;">
|
327
|
+
<span class="method-name">start_server</span><span class="method-args">(server, port, handler=nil)</span>
|
328
|
+
</a>
|
329
|
+
</div>
|
330
|
+
|
331
|
+
<div class="method-description">
|
332
|
+
<p>
|
333
|
+
<a href="EventMachine.html#M000005">start_server</a>
|
334
|
+
</p>
|
335
|
+
</div>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
339
|
+
|
340
|
+
<div id="method-M000007" class="method-detail">
|
341
|
+
<a name="M000007"></a>
|
342
|
+
|
343
|
+
<div class="method-heading">
|
344
|
+
<a href="EventMachine.src/M000007.html" target="Code" class="method-signature"
|
345
|
+
onclick="popupCode('EventMachine.src/M000007.html');return false;">
|
346
|
+
<span class="method-name">connection_callback</span><span class="method-args">(conn_binding, opcode, data, datasize)</span>
|
347
|
+
</a>
|
348
|
+
</div>
|
349
|
+
|
350
|
+
<div class="method-description">
|
351
|
+
<p>
|
352
|
+
<a href="EventMachine.html#M000007">connection_callback</a>
|
353
|
+
</p>
|
354
|
+
</div>
|
355
|
+
</div>
|
356
|
+
|
357
|
+
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
|
364
|
+
<div id="validator-badges">
|
365
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
</body>
|
369
|
+
</html>
|