7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTcpSocket Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QTcpSocket class provides a TCP socket. <a href="#details">More...</a></p>
10
11
<p>Inherits <a href="qabstractsocket.html">QAbstractSocket</a>.</p><p>Inherited by <a href="qsslsocket.html">QSslSocket</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtcpsocket.html#QTcpSocket">__init__</a></b> (<i>self</i>, QObject <i>parent</i> = None)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTcpSocket class provides a TCP socket.</p>
11
<p>TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data.</p>
12
<p>QTcpSocket is a convenience subclass of <a href="qabstractsocket.html">QAbstractSocket</a> that allows you to establish a TCP connection and transfer streams of data. See the <a href="qabstractsocket.html">QAbstractSocket</a> documentation for details.</p>
13
<p><b>Note:</b> TCP sockets cannot be opened in <a href="qiodevice.html#OpenModeFlag-enum">QIODevice.Unbuffered</a> mode.</p>
14
<a name="symbian-platform-security-requirements" />
12
<p>TCP (Transmission Control Protocol) is a reliable,
13
stream-oriented, connection-oriented transport protocol. It is
14
especially well suited for continuous transmission of data.</p>
15
<p>QTcpSocket is a convenience subclass of <a href="qabstractsocket.html">QAbstractSocket</a> that allows you to
16
establish a TCP connection and transfer streams of data. See the
17
<a href="qabstractsocket.html">QAbstractSocket</a> documentation
19
<p><b>Note:</b> TCP sockets cannot be opened in <a href="qiodevice.html#OpenModeFlag-enum">QIODevice.Unbuffered</a>
21
<a id="symbian-platform-security-requirements" name="symbian-platform-security-requirements" />
15
22
<h3>Symbian Platform Security Requirements</h3>
16
<p>On Symbian, processes which use this class must have the <tt>NetworkServices</tt> platform security capability. If the client process lacks this capability, it will result in a panic.</p>
17
<p>Platform security capabilities are added via the <a href="qmake-variable-reference.html#target-capability">TARGET.CAPABILITY</a> qmake variable.</p>
18
<p>See also <a href="qtcpserver.html">QTcpServer</a>, <a href="qudpsocket.html">QUdpSocket</a>, <a href="qftp.html">QFtp</a>, <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a>, <a href="network-fortuneserver.html">Fortune Server Example</a>, <a href="network-fortuneclient.html">Fortune Client Example</a>, <a href="network-threadedfortuneserver.html">Threaded Fortune Server Example</a>, <a href="network-blockingfortuneclient.html">Blocking Fortune Client Example</a>, <a href="network-loopback.html">Loopback Example</a>, and <a href="network-torrent.html">Torrent Example</a>.</p>
19
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTcpSocket" />QTcpSocket.__init__ (<i>self</i>, <a href="qobject.html">QObject</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Creates a <a href="qtcpsocket.html">QTcpSocket</a> object in state <tt>UnconnectedState</tt>.</p>
23
<p>On Symbian, processes which use this class must have the
24
<tt>NetworkServices</tt> platform security capability. If the
25
client process lacks this capability, it will result in a
27
<p>Platform security capabilities are added via the <a href="qmake-variable-reference.html#target-capability">TARGET.CAPABILITY</a>
29
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTcpSocket" />QTcpSocket.__init__ (<i>self</i>, <a href="qobject.html">QObject</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Creates a <a href="qtcpsocket.html">QTcpSocket</a> object in
30
state <tt>UnconnectedState</tt>.</p>
20
31
<p><i>parent</i> is passed on to the <a href="qobject.html">QObject</a> constructor.</p>
21
32
<p>See also <a href="qabstractsocket.html#socketType">socketType</a>().</p>
22
<a name="//apple_ref/cpp/instm/QTcpSocket/~QTcpSocket" />
23
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.7 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.3</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'
35
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.8.1 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.7.0</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'