MCPcopy
hub / github.com/fail2ban/fail2ban / send

Method send

fail2ban/client/csocket.py:52–58  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

50 self.__csock.connect(sock)
51
52 def send(self, msg):
53 # Convert every list member to string
54 obj = dumps([str(m) for m in msg], HIGHEST_PROTOCOL)
55 self.__csock.send(obj + CSocket.END_STRING)
56 ret = self.receive(self.__csock)
57 self.__csock.close()
58 return ret
59
60 #@staticmethod
61 def receive(sock):

Callers 3

testSocketMethod · 0.95
_copy_lines_to_journalFunction · 0.80
authFunction · 0.80

Calls 2

receiveMethod · 0.95
closeMethod · 0.80

Tested by 2

testSocketMethod · 0.76
_copy_lines_to_journalFunction · 0.64