src/eric7/Documentation/Source/eric7.EricNetwork.EricJsonStreamReader.html

branch
eric7
changeset 10479
856476537696
parent 9209
b99e7fd55fd3
child 10928
46651e194fbe
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.EricNetwork.EricJsonStreamReader</h1> 9 <h1>eric7.EricNetwork.EricJsonStreamReader</h1>
10
11 <p> 10 <p>
12 Module implementing a JSON based reader class. 11 Module implementing a JSON based reader class.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#EricJsonReader">EricJsonReader</a></td> 22 <td><a href="#EricJsonReader">EricJsonReader</a></td>
25 <td>Class implementing a JSON based reader class.</td> 23 <td>Class implementing a JSON based reader class.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="EricJsonReader" ID="EricJsonReader"></a> 34 <a NAME="EricJsonReader" ID="EricJsonReader"></a>
36 <h2>EricJsonReader</h2> 35 <h2>EricJsonReader</h2>
37
38 <p> 36 <p>
39 Class implementing a JSON based reader class. 37 Class implementing a JSON based reader class.
40 </p> 38 </p>
41 <p> 39 <p>
42 The reader is responsible for opening a socket to listen for writer 40 The reader is responsible for opening a socket to listen for writer
43 connections. 41 connections.
44 </p> 42 </p>
43
45 <h3>Signals</h3> 44 <h3>Signals</h3>
46 <dl> 45 <dl>
47 46
48 <dt>dataReceived(object)</dt> 47 <dt>dataReceived(object)</dt>
49 <dd> 48 <dd>
51 </dd> 50 </dd>
52 </dl> 51 </dl>
53 <h3>Derived from</h3> 52 <h3>Derived from</h3>
54 QTcpServer 53 QTcpServer
55 <h3>Class Attributes</h3> 54 <h3>Class Attributes</h3>
56
57 <table> 55 <table>
58 <tr><td>None</td></tr> 56 <tr><td>None</td></tr>
59 </table> 57 </table>
58
60 <h3>Class Methods</h3> 59 <h3>Class Methods</h3>
61
62 <table> 60 <table>
63 <tr><td>None</td></tr> 61 <tr><td>None</td></tr>
64 </table> 62 </table>
63
65 <h3>Methods</h3> 64 <h3>Methods</h3>
66
67 <table> 65 <table>
68
69 <tr> 66 <tr>
70 <td><a href="#EricJsonReader.__init__">EricJsonReader</a></td> 67 <td><a href="#EricJsonReader.__init__">EricJsonReader</a></td>
71 <td>Constructor</td> 68 <td>Constructor</td>
72 </tr> 69 </tr>
73 <tr> 70 <tr>
89 <tr> 86 <tr>
90 <td><a href="#EricJsonReader.port">port</a></td> 87 <td><a href="#EricJsonReader.port">port</a></td>
91 <td>Public method to get the port number to connect to.</td> 88 <td>Public method to get the port number to connect to.</td>
92 </tr> 89 </tr>
93 </table> 90 </table>
91
94 <h3>Static Methods</h3> 92 <h3>Static Methods</h3>
95
96 <table> 93 <table>
97 <tr><td>None</td></tr> 94 <tr><td>None</td></tr>
98 </table> 95 </table>
99 96
97
100 <a NAME="EricJsonReader.__init__" ID="EricJsonReader.__init__"></a> 98 <a NAME="EricJsonReader.__init__" ID="EricJsonReader.__init__"></a>
101 <h4>EricJsonReader (Constructor)</h4> 99 <h4>EricJsonReader (Constructor)</h4>
102 <b>EricJsonReader</b>(<i>name="", ip=None, parent=None</i>) 100 <b>EricJsonReader</b>(<i>name="", ip=None, parent=None</i>)
103
104 <p> 101 <p>
105 Constructor 102 Constructor
106 </p> 103 </p>
104
107 <dl> 105 <dl>
108 106
109 <dt><i>name</i> (str)</dt> 107 <dt><i>name</i> (str)</dt>
110 <dd> 108 <dd>
111 name of the server (used for output only) 109 name of the server (used for output only)
120 </dd> 118 </dd>
121 </dl> 119 </dl>
122 <a NAME="EricJsonReader.__handleDisconnect" ID="EricJsonReader.__handleDisconnect"></a> 120 <a NAME="EricJsonReader.__handleDisconnect" ID="EricJsonReader.__handleDisconnect"></a>
123 <h4>EricJsonReader.__handleDisconnect</h4> 121 <h4>EricJsonReader.__handleDisconnect</h4>
124 <b>__handleDisconnect</b>(<i></i>) 122 <b>__handleDisconnect</b>(<i></i>)
125
126 <p> 123 <p>
127 Private slot handling a disconnect of the writer. 124 Private slot handling a disconnect of the writer.
128 </p> 125 </p>
126
129 <a NAME="EricJsonReader.__receiveJson" ID="EricJsonReader.__receiveJson"></a> 127 <a NAME="EricJsonReader.__receiveJson" ID="EricJsonReader.__receiveJson"></a>
130 <h4>EricJsonReader.__receiveJson</h4> 128 <h4>EricJsonReader.__receiveJson</h4>
131 <b>__receiveJson</b>(<i></i>) 129 <b>__receiveJson</b>(<i></i>)
132
133 <p> 130 <p>
134 Private slot handling received data from the writer. 131 Private slot handling received data from the writer.
135 </p> 132 </p>
133
136 <a NAME="EricJsonReader.address" ID="EricJsonReader.address"></a> 134 <a NAME="EricJsonReader.address" ID="EricJsonReader.address"></a>
137 <h4>EricJsonReader.address</h4> 135 <h4>EricJsonReader.address</h4>
138 <b>address</b>(<i></i>) 136 <b>address</b>(<i></i>)
139
140 <p> 137 <p>
141 Public method to get the host address. 138 Public method to get the host address.
142 </p> 139 </p>
140
143 <dl> 141 <dl>
144 <dt>Return:</dt> 142 <dt>Return:</dt>
145 <dd> 143 <dd>
146 host address 144 host address
147 </dd> 145 </dd>
153 </dd> 151 </dd>
154 </dl> 152 </dl>
155 <a NAME="EricJsonReader.handleNewConnection" ID="EricJsonReader.handleNewConnection"></a> 153 <a NAME="EricJsonReader.handleNewConnection" ID="EricJsonReader.handleNewConnection"></a>
156 <h4>EricJsonReader.handleNewConnection</h4> 154 <h4>EricJsonReader.handleNewConnection</h4>
157 <b>handleNewConnection</b>(<i></i>) 155 <b>handleNewConnection</b>(<i></i>)
158
159 <p> 156 <p>
160 Public slot for new incoming connections from a writer. 157 Public slot for new incoming connections from a writer.
161 </p> 158 </p>
159
162 <a NAME="EricJsonReader.port" ID="EricJsonReader.port"></a> 160 <a NAME="EricJsonReader.port" ID="EricJsonReader.port"></a>
163 <h4>EricJsonReader.port</h4> 161 <h4>EricJsonReader.port</h4>
164 <b>port</b>(<i></i>) 162 <b>port</b>(<i></i>)
165
166 <p> 163 <p>
167 Public method to get the port number to connect to. 164 Public method to get the port number to connect to.
168 </p> 165 </p>
166
169 <dl> 167 <dl>
170 <dt>Return:</dt> 168 <dt>Return:</dt>
171 <dd> 169 <dd>
172 port number 170 port number
173 </dd> 171 </dd>

eric ide

mercurial