[Implemented] Timeout Parameter for OpenNetworkConnection()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
HeX0R
Addict
Addict
Posts: 1187
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

[Implemented] Timeout Parameter for OpenNetworkConnection()

Post by HeX0R »

This would be very handy!
If you try to connect to a dead Server it sometimes needs 10 or more Seconds till it recognizes the other station isn't available.
In this time your whole program is not responding (if not thread-handled).

An optional Timeout-Parameter would be nice.
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post by plouf »

i agree for the optional timeout parameter

however if you need your program to dont hang maybe you should do some thread stuff
becasuse some times big reply times its needed for a slow connection to reply etc
Christos
MLK
User
User
Posts: 57
Joined: Sat Jan 24, 2004 8:46 pm
Location: Germany

Post by MLK »

would be nice .. also for ReceiveNetworkData()

isn't there at least a way to set a timeout value using ASM or WinAPI ?
Post Reply