Page 1 of 1
Net Connection
Posted: Sun Nov 09, 2003 10:52 pm
by Britney
Is there a way to check that the current network connection is live? I mean, if you try to send while it isn't it will result in massive problems, right? The ClientID is set during a successful connection, but does it reset itself to 0 if the connection dies? Or does that variable remain the same?
So, would this be safe?
a=clientid.....etc
if a<>0
perform some network receive/send
endif
Edit: I think I may change my avatar and login details sometime. You can't possibly take me serious like this. Noted. hehe
Posted: Sun Nov 09, 2003 11:14 pm
by Codemonger
PLs change them now

Posted: Mon Nov 10, 2003 12:25 am
by Kale
Awww... Britney pls don't leave us!!!

i think i'm in love!

Posted: Mon Nov 10, 2003 12:55 am
by dmoc
When you say "connection" are you referring to a dial-up or to an actual server?
Posted: Mon Nov 10, 2003 6:00 pm
by Britney
Actually if anyone can answer both, I'd appreciate it. I did mean connection to a server. If the connection no longer exists, how can I check on that before attempting to send/recieve? My original
connection-id will still be filled with the value of 190 (or whatever)?
The other - checking that the user has a current live net connection is done by InternetGetConnectedState(), somehow, but I am pretty new to using API, so I'm kind lost on that one also.
Edit: Hrm, seems changing my username in profile didn't make a difference.
Posted: Mon Nov 10, 2003 6:07 pm
by Codemonger
You might have to clear your IE cache or refresh the screen to update your profile as it is probably reading from your old cookie. Also Logout and Login. Picture is gon though
