mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-22 22:40:58 -04:00
Set socket options
This commit is contained in:
parent
cd9e23f2de
commit
7a6ed68482
2 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,7 @@ class LocalClientInterface(Interface):
|
|||
self.target_ip = None
|
||||
self.target_port = None
|
||||
self.socket = connected_socket
|
||||
self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||
|
||||
self.is_connected_to_shared_instance = False
|
||||
|
||||
|
@ -108,6 +109,7 @@ class LocalClientInterface(Interface):
|
|||
|
||||
def connect(self):
|
||||
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||
self.socket.connect((self.target_ip, self.target_port))
|
||||
|
||||
self.online = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue