vnode 0.1.9__tar.gz → 0.1.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vnode-0.1.9 → vnode-0.1.10}/PKG-INFO +1 -1
- {vnode-0.1.9 → vnode-0.1.10}/pyproject.toml +1 -1
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/runtime.py +9 -2
- {vnode-0.1.9 → vnode-0.1.10}/LICENSE +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/README.md +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/__init__.py +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/__main__.py +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/cli.py +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/config.py +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/crypto.py +0 -0
- {vnode-0.1.9 → vnode-0.1.10}/vnode/vnode/example-node.json +0 -0
|
@@ -367,8 +367,13 @@ class VirtualNode:
|
|
|
367
367
|
if getattr(conn, "socket", None) is None:
|
|
368
368
|
conn.setup_multicast(self.config.udp.mcast_group, int(self.config.udp.mcast_port))
|
|
369
369
|
|
|
370
|
-
def send_nodeinfo(
|
|
371
|
-
|
|
370
|
+
def send_nodeinfo(
|
|
371
|
+
self,
|
|
372
|
+
destination: int = BROADCAST_NUM,
|
|
373
|
+
*,
|
|
374
|
+
want_response: bool = False,
|
|
375
|
+
) -> int:
|
|
376
|
+
return self._send_nodeinfo(destination, want_response=want_response)
|
|
372
377
|
|
|
373
378
|
def _send_nodeinfo(
|
|
374
379
|
self,
|
|
@@ -376,6 +381,7 @@ class VirtualNode:
|
|
|
376
381
|
*,
|
|
377
382
|
request_id: Optional[int] = None,
|
|
378
383
|
want_ack: bool = False,
|
|
384
|
+
want_response: bool = False,
|
|
379
385
|
) -> int:
|
|
380
386
|
user = mesh_pb2.User(
|
|
381
387
|
id=self.config.node_id,
|
|
@@ -392,6 +398,7 @@ class VirtualNode:
|
|
|
392
398
|
data.payload = user.SerializeToString()
|
|
393
399
|
data.source = self.node_num
|
|
394
400
|
data.dest = int(destination)
|
|
401
|
+
data.want_response = bool(want_response)
|
|
395
402
|
if request_id is not None:
|
|
396
403
|
data.request_id = int(request_id)
|
|
397
404
|
packet_id = self._send_data(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|