Documentation/Source/eric5.Utilities.BackgroundClient.html

branch
Py2 comp.
changeset 3456
96232974dcdb
parent 3209
c5432abceb25
child 3591
2f2a4a76dd22
equal deleted inserted replaced
3178:f25fc1364c88 3456:96232974dcdb
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric5.Utilities.BackgroundClient</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric5.Utilities.BackgroundClient</h1>
23 <p>
24 Module implementing a Qt free version of a background client for the various
25 checkers and other python interpreter dependent functions.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#BackgroundClient">BackgroundClient</a></td>
35 <td>Class implementing the main part of the background client.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="BackgroundClient" ID="BackgroundClient"></a>
44 <h2>BackgroundClient</h2>
45 <p>
46 Class implementing the main part of the background client.
47 </p>
48 <h3>Derived from</h3>
49 object
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>backgroundClient</td></tr>
53 </table>
54 <h3>Class Methods</h3>
55 <table>
56 <tr><td>None</td></tr>
57 </table>
58 <h3>Methods</h3>
59 <table>
60 <tr>
61 <td><a href="#BackgroundClient.__init__">BackgroundClient</a></td>
62 <td>Constructor of the BackgroundClient class.</td>
63 </tr><tr>
64 <td><a href="#BackgroundClient.__initClientService">__initClientService</a></td>
65 <td>Import the given module and register it as service.</td>
66 </tr><tr>
67 <td><a href="#BackgroundClient.__receive">__receive</a></td>
68 <td>Private methode to receive the given length of bytes.</td>
69 </tr><tr>
70 <td><a href="#BackgroundClient.__send">__send</a></td>
71 <td>Private method to send a job response back to the BackgroundService.</td>
72 </tr><tr>
73 <td><a href="#BackgroundClient.run">run</a></td>
74 <td>Implement the main loop of the client.</td>
75 </tr>
76 </table>
77 <h3>Static Methods</h3>
78 <table>
79 <tr><td>None</td></tr>
80 </table>
81 <a NAME="BackgroundClient.__init__" ID="BackgroundClient.__init__"></a>
82 <h4>BackgroundClient (Constructor)</h4>
83 <b>BackgroundClient</b>(<i>host, port</i>)
84 <p>
85 Constructor of the BackgroundClient class.
86 </p><dl>
87 <dt><i>host</i></dt>
88 <dd>
89 ip address the background service is listening
90 </dd><dt><i>port</i></dt>
91 <dd>
92 port of the background service
93 </dd>
94 </dl><a NAME="BackgroundClient.__initClientService" ID="BackgroundClient.__initClientService"></a>
95 <h4>BackgroundClient.__initClientService</h4>
96 <b>__initClientService</b>(<i>fn, path, module</i>)
97 <p>
98 Import the given module and register it as service.
99 </p><dl>
100 <dt><i>fn</i></dt>
101 <dd>
102 service name to register (str)
103 </dd><dt><i>path</i></dt>
104 <dd>
105 contains the path to the module (str)
106 </dd><dt><i>module</i></dt>
107 <dd>
108 name to import (str)
109 </dd>
110 </dl><dl>
111 <dt>Returns:</dt>
112 <dd>
113 text result of the import action (str)
114 </dd>
115 </dl><a NAME="BackgroundClient.__receive" ID="BackgroundClient.__receive"></a>
116 <h4>BackgroundClient.__receive</h4>
117 <b>__receive</b>(<i>length</i>)
118 <p>
119 Private methode to receive the given length of bytes.
120 </p><dl>
121 <dt><i>length</i></dt>
122 <dd>
123 bytes to receive (int)
124 </dd>
125 </dl><dl>
126 <dt>Returns:</dt>
127 <dd>
128 received bytes or None if connection closed (str)
129 </dd>
130 </dl><a NAME="BackgroundClient.__send" ID="BackgroundClient.__send"></a>
131 <h4>BackgroundClient.__send</h4>
132 <b>__send</b>(<i>fx, fn, data</i>)
133 <p>
134 Private method to send a job response back to the BackgroundService.
135 </p><dl>
136 <dt><i>fx</i></dt>
137 <dd>
138 remote function name to execute (str)
139 </dd><dt><i>fn</i></dt>
140 <dd>
141 filename for identification (str)
142 </dd><dt><i>data</i></dt>
143 <dd>
144 return value(s) (any basic datatype)
145 </dd>
146 </dl><a NAME="BackgroundClient.run" ID="BackgroundClient.run"></a>
147 <h4>BackgroundClient.run</h4>
148 <b>run</b>(<i></i>)
149 <p>
150 Implement the main loop of the client.
151 </p>
152 <div align="right"><a href="#top">Up</a></div>
153 <hr />
154 </body></html>

eric ide

mercurial