mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-29 19:51:35 -04:00
Use abstract domain sockets for RPC
This commit is contained in:
parent
628c4984a3
commit
3049049d5b
3 changed files with 37 additions and 21 deletions
|
@ -62,7 +62,7 @@ class LocalClientInterface(Interface):
|
|||
self.HW_MTU = 262144
|
||||
self.online = False
|
||||
|
||||
if socket_path != None and RNS.vendor.platformutils.use_epoll(): self.socket_path = f"\0rns/{socket_path}"
|
||||
if socket_path != None and RNS.vendor.platformutils.use_af_unix(): self.socket_path = f"\0rns/{socket_path}"
|
||||
else: self.socket_path = None
|
||||
|
||||
self.IN = True
|
||||
|
@ -341,7 +341,7 @@ class LocalServerInterface(Interface):
|
|||
self.online = False
|
||||
self.clients = 0
|
||||
|
||||
if socket_path != None and RNS.vendor.platformutils.is_linux(): self.socket_path = f"\0rns/{socket_path}"
|
||||
if socket_path != None and RNS.vendor.platformutils.use_af_unix(): self.socket_path = f"\0rns/{socket_path}"
|
||||
else: self.socket_path = None
|
||||
|
||||
self.IN = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue