Documentation/Source/eric5.Utilities.BackgroundClient.html

Sun, 18 May 2014 14:13:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 18 May 2014 14:13:09 +0200
changeset 3591
2f2a4a76dd22
parent 3456
96232974dcdb
permissions
-rw-r--r--

Corrected a bunch of source docu issues.

<!DOCTYPE html>
<html><head>
<title>eric5.Utilities.BackgroundClient</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.Utilities.BackgroundClient</h1>
<p>
Module implementing a Qt free version of a background client for the various
checkers and other python interpreter dependent functions.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#BackgroundClient">BackgroundClient</a></td>
<td>Class implementing the main part of the background client.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="BackgroundClient" ID="BackgroundClient"></a>
<h2>BackgroundClient</h2>
<p>
    Class implementing the main part of the background client.
</p>
<h3>Derived from</h3>
object
<h3>Class Attributes</h3>
<table>
<tr><td>backgroundClient</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#BackgroundClient.__init__">BackgroundClient</a></td>
<td>Constructor of the BackgroundClient class.</td>
</tr><tr>
<td><a href="#BackgroundClient.__initClientService">__initClientService</a></td>
<td>Private method to import the given module and register it as service.</td>
</tr><tr>
<td><a href="#BackgroundClient.__receive">__receive</a></td>
<td>Private methode to receive the given length of bytes.</td>
</tr><tr>
<td><a href="#BackgroundClient.__send">__send</a></td>
<td>Private method to send a job response back to the BackgroundService.</td>
</tr><tr>
<td><a href="#BackgroundClient.run">run</a></td>
<td>Public method implementing the main loop of the client.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="BackgroundClient.__init__" ID="BackgroundClient.__init__"></a>
<h4>BackgroundClient (Constructor)</h4>
<b>BackgroundClient</b>(<i>host, port</i>)
<p>
        Constructor of the BackgroundClient class.
</p><dl>
<dt><i>host</i></dt>
<dd>
ip address the background service is listening
</dd><dt><i>port</i></dt>
<dd>
port of the background service
</dd>
</dl><a NAME="BackgroundClient.__initClientService" ID="BackgroundClient.__initClientService"></a>
<h4>BackgroundClient.__initClientService</h4>
<b>__initClientService</b>(<i>fn, path, module</i>)
<p>
        Private method to import the given module and register it as service.
</p><dl>
<dt><i>fn</i></dt>
<dd>
service name to register (str)
</dd><dt><i>path</i></dt>
<dd>
contains the path to the module (str)
</dd><dt><i>module</i></dt>
<dd>
name to import (str)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
text result of the import action (str)
</dd>
</dl><a NAME="BackgroundClient.__receive" ID="BackgroundClient.__receive"></a>
<h4>BackgroundClient.__receive</h4>
<b>__receive</b>(<i>length</i>)
<p>
        Private methode to receive the given length of bytes.
</p><dl>
<dt><i>length</i></dt>
<dd>
bytes to receive (int)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
received bytes or None if connection closed (str)
</dd>
</dl><a NAME="BackgroundClient.__send" ID="BackgroundClient.__send"></a>
<h4>BackgroundClient.__send</h4>
<b>__send</b>(<i>fx, fn, data</i>)
<p>
        Private method to send a job response back to the BackgroundService.
</p><dl>
<dt><i>fx</i></dt>
<dd>
remote function name to execute (str)
</dd><dt><i>fn</i></dt>
<dd>
filename for identification (str)
</dd><dt><i>data</i></dt>
<dd>
return value(s) (any basic datatype)
</dd>
</dl><a NAME="BackgroundClient.run" ID="BackgroundClient.run"></a>
<h4>BackgroundClient.run</h4>
<b>run</b>(<i></i>)
<p>
        Public method implementing the main loop of the client.
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial