Page 1 of 1

Posted: Wed Jul 31, 2002 10:18 pm
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 : )

Posted: Sat Aug 03, 2002 3:30 pm
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

Posted: Sat Aug 03, 2002 6:15 pm
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 :)

Posted: Sun Aug 04, 2002 6:46 pm
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

Posted: Sun Aug 04, 2002 10:19 pm
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