NetWork wishes

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

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.


1.- IP command that returns easily the IP and port used by the app

2.- A NON blocking send or receive files with percent returned or bytes sended

Thanks : )
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.
1.- IP command that returns easily the IP and port used by the app
Ok.
2.- A NON blocking send or receive files with percent returned or bytes sended
Build your own routine :). About 3 lines...


Edited by - fred on 03 August 2002 16:31:06
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi Fred !!
2.- A NON blocking send or receive files with percent returned or bytes sended
Build your own routine :). About 3 lines...
[/quote]

But the FileSend or FileReceive command blocks the app until it ends...
what im asking is that THOSE commands be updated.
Or maybe i dont understand your answer :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
1.- IP command that returns easily the IP and port used by the app
There are several examples in the forum to get all your IPs. Nice would be to get the Gateway IP to the Internet. But what do you mean with Port?? You should know on which port your application is listening too or!?
2.- A NON blocking send or receive files with percent returned or bytes sended
Try it in a threaded Procedure if you want to use the PB Commands but I would suggest you to use your own routines to send/receive files through the network.

Use SendNetworkData ans receivenetworkdata instead.

Cheers
Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.
There are several examples in the forum to get all your IPs.
Dosent works here this examples...

Nice would be to get the Gateway IP to the Internet. But what do you mean with Port?? You should know on which port your application is listening too or!?.
Yes, i notice that when i submited the question... lapsus intelectus.

Try it in a threaded Procedure if you want to use the PB Commands but I would suggest you to use your own routines to send/receive files through the network.

Use SendNetworkData ans receivenetworkdata instead.
Yes i know, but if the commands are there, im just suggesting to change a little bit that commands to make it more usefull.
I dont see the point to have a command that are "not recommendable" if the command could be improved
The idea behind server sending data and files are great and simple to use, just with that small change it will be excellent, with no need to workaroud.

Thanks
Post Reply