Windows Networking connect in background

T

TheXReflex

Guest
Is it possible to have network_connect run in the background?
If not, is there a way too make sure the server is up?
 

Roa

Member
best way to do this is use UDP. Its fire and forget and you wont have any hang times. Alternatively you can use network_set_timeout(socket, read_timeout, write_timeout); to make a smaller window of connection, but you must have a pretty clean connection for it to be accurate after less than 1000ms or so.
 

johnwo

Member
Use network_set_config(config_value, setting); to set the timeout value, and set whether the network_connect function should be blocking or not (Blocking = The game "freezes" while trying to connect, Non-blocking: the game continues as normal when trying to connect.) with the config values network_config_connect_timeout and network_config_use_non_blocking_socket.

network_connect trigger an async-event of type network_type_connect.

Cheers!
 
T

TheXReflex

Guest
Use network_set_config(config_value, setting); to set the timeout value, and set whether the network_connect function should be blocking or not (Blocking = The game "freezes" while trying to connect, Non-blocking: the game continues as normal when trying to connect.) with the config values network_config_connect_timeout and network_config_use_non_blocking_socket.

network_connect trigger an async-event of type network_type_connect.

Cheers!
Thanks!
 
Top