OpenNetworkConnection() connects with local server if host name is blank

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

OpenNetworkConnection() connects with local server if host name is blank

Post by PBJim »

OpenNetworkConnection("", port) with blank host parameter makes a connection with the local server but the documentation doesn't mention this behaviour. I have only tried this with Windows 64-bit PB 6.00.
The server to connect to. This can be an IP address or a full name (ie: "127.0.0.1" or "ftp.home.net").
https://www.purebasic.com/documentation ... ction.html