I'm using OpenTCPStream to connect to my web server so I can run various PHP scripts. If the net connection is unplugged, it returns zero and we move on ... no problem there.
However, I'm wondering two things:
1) Is there a way to detect that the user is online or not? In other words, is there a way that I could tell them "You need to connect to the internet!" specifically, and not just a generic "Failed to connect" message?
2) If the user is using a dial-up modem, does "OpenTCPStream" open up the connection manager automatically or anything like that? Or does it just fail as it would with a direct connection?
However, I'm wondering two things:
1) Is there a way to detect that the user is online or not? In other words, is there a way that I could tell them "You need to connect to the internet!" specifically, and not just a generic "Failed to connect" message?
2) If the user is using a dial-up modem, does "OpenTCPStream" open up the connection manager automatically or anything like that? Or does it just fail as it would with a direct connection?