Sends one Python object over a socket.
(self, sock, obj)
| 22 | RECV_SIZE = 4096 |
| 23 | |
| 24 | def send(self, sock, obj): |
| 25 | 'Sends one Python object over a socket.' |
| 26 | self.sendall(sock, '\x00'.join([z_string.string_code(string) for string in z_string.partition(cPickle.dumps(obj, -1), self.SEND_SIZE)])) |
| 27 | |
| 28 | def recv(self, sock): |
| 29 | 'Receives one Python object over a socket.' |
no test coverage detected