54 <tr> |
54 <tr> |
55 <td><a href="#EricJsonClient.__init__">EricJsonClient</a></td> |
55 <td><a href="#EricJsonClient.__init__">EricJsonClient</a></td> |
56 <td>Constructor</td> |
56 <td>Constructor</td> |
57 </tr> |
57 </tr> |
58 <tr> |
58 <tr> |
|
59 <td><a href="#EricJsonClient.__receiveBytes">__receiveBytes</a></td> |
|
60 <td>Private method to receive the given length of bytes.</td> |
|
61 </tr> |
|
62 <tr> |
59 <td><a href="#EricJsonClient.__receiveJson">__receiveJson</a></td> |
63 <td><a href="#EricJsonClient.__receiveJson">__receiveJson</a></td> |
60 <td>Private method to receive a JSON encoded command and data from the server.</td> |
64 <td>Private method to receive a JSON encoded command and data from the server.</td> |
61 </tr> |
65 </tr> |
62 <tr> |
66 <tr> |
63 <td><a href="#EricJsonClient.handleCall">handleCall</a></td> |
67 <td><a href="#EricJsonClient.handleCall">handleCall</a></td> |
104 <dd> |
108 <dd> |
105 assigned client id to be sent back to the server in |
109 assigned client id to be sent back to the server in |
106 order to identify the connection |
110 order to identify the connection |
107 </dd> |
111 </dd> |
108 </dl> |
112 </dl> |
|
113 <a NAME="EricJsonClient.__receiveBytes" ID="EricJsonClient.__receiveBytes"></a> |
|
114 <h4>EricJsonClient.__receiveBytes</h4> |
|
115 <b>__receiveBytes</b>(<i>length</i>) |
|
116 <p> |
|
117 Private method to receive the given length of bytes. |
|
118 </p> |
|
119 |
|
120 <dl> |
|
121 |
|
122 <dt><i>length</i> (int)</dt> |
|
123 <dd> |
|
124 bytes to receive |
|
125 </dd> |
|
126 </dl> |
|
127 <dl> |
|
128 <dt>Return:</dt> |
|
129 <dd> |
|
130 received bytes or None if connection closed |
|
131 </dd> |
|
132 </dl> |
|
133 <dl> |
|
134 <dt>Return Type:</dt> |
|
135 <dd> |
|
136 bytes |
|
137 </dd> |
|
138 </dl> |
109 <a NAME="EricJsonClient.__receiveJson" ID="EricJsonClient.__receiveJson"></a> |
139 <a NAME="EricJsonClient.__receiveJson" ID="EricJsonClient.__receiveJson"></a> |
110 <h4>EricJsonClient.__receiveJson</h4> |
140 <h4>EricJsonClient.__receiveJson</h4> |
111 <b>__receiveJson</b>(<i></i>) |
141 <b>__receiveJson</b>(<i></i>) |
112 <p> |
142 <p> |
113 Private method to receive a JSON encoded command and data from the |
143 Private method to receive a JSON encoded command and data from the |