[Implemented] Network commands.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Network commands.

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

It would be nice to be able to easily use a longword ip address with the 'OpenNetworkConnection()' command. Perhaps something like this:

Code: Select all

OpenNetworkConnection(ipstring.s, port[, ip.l])
Where 'ip.l' is prioritized if supplied, or perhaps change it altogether and split it up into two commands like this:

Code: Select all

ip.l = ResolveURL(ipstring.s)
OpenNetworkConnection(ip.l, port)
Implementing this would make my source lines fit within 120 columns width atleast :wink: