src/eric7/Documentation/Source/eric7.Cooperation.CooperationServer.html

Mon, 09 Jan 2023 11:22:56 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jan 2023 11:22:56 +0100
branch
eric7
changeset 9686
2eee7a645cba
parent 9209
b99e7fd55fd3
child 10423
299802979277
permissions
-rw-r--r--

Moved the 'QtHelp' subpackage out of the WebBrowser package because it is used in the HelpViewer as well.

<!DOCTYPE html>
<html><head>
<title>eric7.Cooperation.CooperationServer</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Cooperation.CooperationServer</h1>

<p>
Module implementing the cooperation server.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#CooperationServer">CooperationServer</a></td>
<td>Class implementing the cooperation server.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="CooperationServer" ID="CooperationServer"></a>
<h2>CooperationServer</h2>

<p>
    Class implementing the cooperation server.
</p>
<h3>Signals</h3>
<dl>

<dt>newConnection(connection)</dt>
<dd>
emitted after a new connection was
        received (Connection)
</dd>
</dl>
<h3>Derived from</h3>
QTcpServer
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#CooperationServer.__init__">CooperationServer</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#CooperationServer.incomingConnection">incomingConnection</a></td>
<td>Public method handling an incoming connection.</td>
</tr>
<tr>
<td><a href="#CooperationServer.startListening">startListening</a></td>
<td>Public method to start listening for new connections.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="CooperationServer.__init__" ID="CooperationServer.__init__"></a>
<h4>CooperationServer (Constructor)</h4>
<b>CooperationServer</b>(<i>address, parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>address</i></dt>
<dd>
address the server should listen on (QHostAddress)
</dd>
<dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl>
<a NAME="CooperationServer.incomingConnection" ID="CooperationServer.incomingConnection"></a>
<h4>CooperationServer.incomingConnection</h4>
<b>incomingConnection</b>(<i>socketDescriptor</i>)

<p>
        Public method handling an incoming connection.
</p>
<dl>

<dt><i>socketDescriptor</i></dt>
<dd>
native socket descriptor (integer)
</dd>
</dl>
<a NAME="CooperationServer.startListening" ID="CooperationServer.startListening"></a>
<h4>CooperationServer.startListening</h4>
<b>startListening</b>(<i>port=-1, findFreePort=False</i>)

<p>
        Public method to start listening for new connections.
</p>
<dl>

<dt><i>port</i></dt>
<dd>
port to listen on (integer)
</dd>
<dt><i>findFreePort</i></dt>
<dd>
flag indicating to search for a free port
            depending on the configuration (boolean)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
tuple giving a flag indicating success (boolean) and
            the port the server listens on
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial