1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.application.internet.TCPServer</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.application.html">Package application</a> ::
34
<a href="twisted.application.internet.html">Module internet</a> ::
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.application.internet.TCPServer.html" target="_top">no frames</a>]</font></td></tr>
43
<!-- =========== START OF CLASS DESCRIPTION =========== -->
44
<h2 class="class">Class TCPServer</h2>
46
<pre class="base-tree">
47
<a href="twisted.application.service.Service.html"><code>Service</code></a> --+
49
<a href="twisted.application.internet._VolatileDataService.html"><code>_VolatileDataService</code></a> --+
51
<a href="twisted.application.internet._AbstractServer.html"><code>_AbstractServer</code></a> --+
56
<dl><dt><b>Known Subclasses:</b></dt>
58
<a href="twisted.runner.inetdtap.RPCServer.html"><code>RPCServer</code></a></dd></dl>
62
<p>Serve TCP clients</p>
63
Call reactor.listenTCP when the service starts, with the arguments
64
given to the constructor. When the service stops, stop listening. See
65
twisted.internet.interfaces for documentation on arguments to the reactor
70
<!-- =========== START OF METHOD SUMMARY =========== -->
71
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
72
<tr bgcolor="#70b0f0" class="summary">
73
<th colspan="2">Method Summary</th></tr>
74
<tr bgcolor="#e8f0f8" class="group">
75
<th colspan="2"> Inherited from _AbstractServer</th></tr>
76
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
77
<td><code><span class="summary-sig"><a href="twisted.application.internet._AbstractServer.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
78
<span class="summary-sig-vararg">*args</span>,
79
<span class="summary-sig-kwarg">**kwargs</span>)</span></code>
81
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
82
<td><code><span class="summary-sig"><a href="twisted.application.internet._AbstractServer.html#_getPort" class="summary-sig-name"><code>_getPort</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
84
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
85
<td><code><span class="summary-sig"><a href="twisted.application.internet._AbstractServer.html#privilegedStartService" class="summary-sig-name"><code>privilegedStartService</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
87
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
88
<td><code><span class="summary-sig"><a href="twisted.application.internet._AbstractServer.html#startService" class="summary-sig-name"><code>startService</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
90
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
91
<td><code><span class="summary-sig"><a href="twisted.application.internet._AbstractServer.html#stopService" class="summary-sig-name"><code>stopService</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
93
<tr bgcolor="#e8f0f8" class="group">
94
<th colspan="2"> Inherited from _VolatileDataService</th></tr>
95
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
96
<td><code><span class="summary-sig"><a href="twisted.application.internet._VolatileDataService.html#__getstate__" class="summary-sig-name"><code>__getstate__</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
98
<tr bgcolor="#e8f0f8" class="group">
99
<th colspan="2"> Inherited from Service</th></tr>
100
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
101
<td><code><span class="summary-sig"><a href="twisted.application.service.Service.html#disownServiceParent" class="summary-sig-name"><code>disownServiceParent</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
103
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
104
<td><code><span class="summary-sig"><a href="twisted.application.service.Service.html#setName" class="summary-sig-name"><code>setName</code></a>(<span class=summary-sig-arg>self</span>,
105
<span class=summary-sig-arg>name</span>)</span></code>
107
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
108
<td><code><span class="summary-sig"><a href="twisted.application.service.Service.html#setServiceParent" class="summary-sig-name"><code>setServiceParent</code></a>(<span class=summary-sig-arg>self</span>,
109
<span class=summary-sig-arg>parent</span>)</span></code>
114
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
115
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
116
<tr bgcolor="#70b0f0" class="summary">
117
<th colspan="2">Class Variable Summary</th></tr>
118
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
119
<td><b><a href="twisted.application.internet.TCPServer.html#method"><code>method</code></a></b> = <span title="'TCP'"><code><span class="variable-quote">'</span>TCP<span class="variable-quote">'</span> </code>
121
<tr bgcolor="#e8f0f8" class="group">
122
<th colspan="2"> Inherited from _AbstractServer</th></tr>
123
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
124
<td><b><a href="twisted.application.internet._AbstractServer.html#privileged"><code>privileged</code></a></b> = <span title="1">1 </span></td></tr>
125
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
126
<td><b><a href="twisted.application.internet._AbstractServer.html#volatile"><code>volatile</code></a></b> = <span title="['_port']"><code>['_port'] </code>
128
<tr bgcolor="#e8f0f8" class="group">
129
<th colspan="2"> Inherited from Service</th></tr>
130
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
131
<td><b><a href="twisted.application.service.Service.html#__implements__"><code>__implements__</code></a></b> = <span title="(<class twisted.application.service.IService at 0x866562c>,)"><code>(<class twisted.application.service.ISe<span class="variable-ellipsis">...</span></code>
133
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
134
<td><b><a href="twisted.application.service.Service.html#name"><code>name</code></a></b> = <span title="None">None </span></td></tr>
135
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
136
<td><b><a href="twisted.application.service.Service.html#parent"><code>parent</code></a></b> = <span title="None">None </span></td></tr>
137
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
138
<td><b><a href="twisted.application.service.Service.html#running"><code>running</code></a></b> = <span title="0">0 </span></td></tr>
142
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
143
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
144
<tr bgcolor="#70b0f0" class="details">
145
<th colspan="2">Class Variable Details</th></tr>
147
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
148
<a name="method"></a>
154
<dt><b>Type:</b></dt>
159
<span title="'TCP'"> <dt><b>Value:</b></dt>
161
<pre class="variable">
162
<span class="variable-quote">'</span>TCP<span class="variable-quote">'</span> </pre>
163
</td></tr></table></dd>
166
</dl></td></tr></table>
170
<!-- =========== START OF NAVBAR =========== -->
171
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
173
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
174
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
175
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
176
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
177
<th class="navbar" align="right" width="100%">
178
<table border="0" cellpadding="0" cellspacing="0">
179
<tr><th class="navbar" align="center">
181
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
182
</p></th></tr></table>
187
<table border="0" cellpadding="0" cellspacing="0" width="100%">
189
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:04 2004</font></td>
190
<td align="right"><a href="http://epydoc.sourceforge.net"
191
><font size="-2">http://epydoc.sf.net</font></a></td>