Documentation/Source/eric5.Cooperation.CooperationServer.html

Wed, 24 Mar 2010 18:38:44 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 24 Mar 2010 18:38:44 +0000
changeset 153
ef200d69dba0
parent 149
a134031209be
child 409
0ea528e80202
child 820
3336024d064a
permissions
-rw-r--r--

Added a few methods to Project.py to support the cooperation stuff.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.Cooperation.CooperationServer</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.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><h4>Signals</h4>
<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>newConnection</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>Protected 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>
<a NAME="CooperationServer.__init__" ID="CooperationServer.__init__"></a>
<h4>CooperationServer (Constructor)</h4>
<b>CooperationServer</b>(<i>parent = None</i>)
<p>
        Constructor
</p><dl>
<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>
        Protected 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</i>)
<p>
        Public method to start listening for new connections.
</p><dl>
<dt><i>port</i></dt>
<dd>
port to listen on (integer)
</dd>
</dl><dl>
<dt>Returns:</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