Skip to content

Commit

Permalink
rearrange some things in start_client function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid-Bhatia-0 committed Mar 23, 2024
1 parent 743ea61 commit 2669072
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions netcode/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,15 @@ function start_client(auth_server_address, username, password)
error("Invalid connect token packet received")
end

app_server_address = get_inetaddr(first(connect_token_packet.netcode_addresses))

@info "Client obtained app_server_address" app_server_address
connection_request_packet = ConnectionRequestPacket(connect_token_packet)
pprint(connection_request_packet)

socket = Sockets.UDPSocket()

connection_request_packet = ConnectionRequestPacket(connect_token_packet)
connection_request_packet_data = get_serialized_data(connection_request_packet)

pprint(connection_request_packet)
app_server_address = get_inetaddr(first(connect_token_packet.netcode_addresses))
@info "Client obtained app_server_address" app_server_address

Sockets.send(socket, app_server_address.host, app_server_address.port, connection_request_packet_data)

Expand Down

0 comments on commit 2669072

Please sign in to comment.