read whole blocks of data and marshalling to messages
This commit is contained in:
parent
0e6197b5fa
commit
0c43e22d90
2 changed files with 85 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue