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

Method send

recipes/Python/577950_Socket_Broadcast_Help/recipe-577950.py:41–44  ·  view source on GitHub ↗

Send a broadcast through the underlying socket.

(self, data)

Source from the content-addressed store, hash-verified

39 return self.__sock.recvfrom(size)
40
41 def send(self, data):
42 "Send a broadcast through the underlying socket."
43 assert self.__sock.sendto(data, self.__addr) == len(data), \
44 'Not all data was sent through the socket!'
45
46 def __gettimeout(self):
47 return self.__sock.gettimeout()

Callers 2

test_sendFunction · 0.45
recipe-577994.pyFile · 0.45

Calls 1

sendtoMethod · 0.45

Tested by 1

test_sendFunction · 0.36