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
Net Connection
-
- Enthusiast
- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
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.
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.
-
- Enthusiast
- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact: