fix
This commit is contained in:
parent
eb4513291f
commit
4921713026
2 changed files with 5 additions and 3 deletions
|
@ -67,7 +67,6 @@ func _on_data(data : Array):
|
|||
|
||||
|
||||
|
||||
|
||||
func _on_connected(s : StreamPeerTCP):
|
||||
print("Connected to",s.get_connected_host()) # Replace with function body.
|
||||
|
||||
|
|
7
VRPN.gd
7
VRPN.gd
|
@ -13,11 +13,14 @@ static func marshal(data : PackedByteArray):
|
|||
|
||||
while block_offset < data.size():
|
||||
|
||||
print("...")
|
||||
|
||||
# reader for stream
|
||||
var header := StreamPeerBuffer.new()
|
||||
header.data_array = data.slice(block_offset,header_size)
|
||||
header.data_array = data.slice(block_offset,block_offset+header_size)
|
||||
header.big_endian = true # make sure we read as big endian
|
||||
|
||||
# Header
|
||||
# read header
|
||||
var length := header.get_32() as int # length of message
|
||||
var time_sec := header.get_32() as int # time sec
|
||||
var time_msec := header.get_32() as int # time micro sec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue