read whole blocks of data and marshalling to messages

This commit is contained in:
Hartmut Seichter 2025-06-27 23:36:10 +02:00
parent 0e6197b5fa
commit 0c43e22d90
2 changed files with 85 additions and 6 deletions

View file

@ -59,11 +59,11 @@ func _on_data(data : Array):
var as_cookie = bytes.get_string_from_ascii()
# Cookie Hack!
if as_cookie.begins_with("vrpn: ver."):
if as_cookie.begins_with(VRPN.magic_cookie_start): #
# kaboom we just send back the same cookie :)
self.send(bytes)
else:
VRPN.marshal(bytes)
VRPN.marshall_block(bytes)