Fix communication over unix socket
This commit is contained in:
parent
35e0890563
commit
ac0cf729f1
|
@ -125,9 +125,15 @@ class UnixSocket:
|
|||
super().connect(self._socket_path)
|
||||
|
||||
|
||||
class SocketClient(_Socket, socket.socket):
|
||||
|
||||
def read(self):
|
||||
return self.recv()
|
||||
|
||||
|
||||
class _Listener:
|
||||
|
||||
def __init__(self, new_server_cb, instanciate=_Socket, **kwargs):
|
||||
def __init__(self, new_server_cb, instanciate=SocketClient, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
self._instanciate = instanciate
|
||||
|
|
Loading…
Reference in New Issue