You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The above code will try and create a server using TCP through port 6510. If that port is unavailable, it will then loop through the ports to find one that is."
The while scope should be attempting to network_create_server_raw rather than network_create_server.
Original:
var port = 6510;
server = network_create_server_raw(network_socket_tcp, port, 32);
while (server < 0 && port < 65535)
{
port++
server = network_create_server(network_socket_tcp, port, 32);
}
Intended:
var port = 6510;
server = network_create_server_raw(network_socket_tcp, port, 32);
while (server < 0 && port < 65535)
{
port++
server = network_create_server_raw(network_socket_tcp, port, 32);
}
YYDan
changed the title
Example Code typo in 'network_create_server_raw'
Manual Content: network_create_server_raw() page's example incorrectly uses network_create_server()
Sep 19, 2024
Description
Given the description for the example:
"The above code will try and create a server using TCP through port 6510. If that port is unavailable, it will then loop through the ports to find one that is."
The while scope should be attempting to
network_create_server_raw
rather thannetwork_create_server
.Original:
Intended:
Manual Link
https://manual.gamemaker.io/monthly/en/index.htm#t=GameMaker_Language%2FGML_Reference%2FNetworking%2Fnetwork_create_server_raw.htm
The text was updated successfully, but these errors were encountered: