network_destroy

语法:

network_destroy(socket);


参数 描述
socket 要移除的套接字id。


返回: N/A(无返回值)


描述

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


例如:

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".