MCPcopy Create free account
hub / github.com/ActiveState/code / send

Method send

recipes/Python/496872_zservicepy/recipe-496872.py:24–26  ·  view source on GitHub ↗

Sends one Python object over a socket.

(self, sock, obj)

Source from the content-addressed store, hash-verified

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.'

Callers 15

handle_writeMethod · 0.45
handle_writeMethod · 0.45
pingFunction · 0.45
basic_serverFunction · 0.45
wrapperFunction · 0.45
recipe-498141.pyFile · 0.45
clientMethod · 0.45
clientMethod · 0.45
recipe-498264.pyFile · 0.45
emitMethod · 0.45
__delitem__Method · 0.45
__setitem__Method · 0.45

Calls 3

sendallMethod · 0.95
joinMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected