network_destroy

Remove a socket (client or server).

Syntax:

network_destroy(socket);


Argument Description
socket The id of the socket to remove.


Returns: N/A


Description

With this function you can remove a network socket connection from your game.


Example:

if !os_is_network_connected()
   {
   network_destroy(sock);
   }

The above code will check to see if there is a data connection and if none is found, destroy the socket with the id "sock".


Back: Networking
Next: network_create_server
© Copyright YoYo Games Ltd. 2015 All Rights Reserved