Default use of TCP doesn't allow very timely detection of dead sockets (outside of normal closure) so I'll suggest that an "is_connected" function like this is largely useless for all practical purposes. Consider implementing an application-layer keep-alive and track if it's alive based on timely responses (or lack thereof).
Client check if server socket is open C# 10/21/2014 - CO2 Programming - 5 Replies i want the client check if the server socket is online or not , and if it's not it's wait 20 sec then check again .. i tried to figure it out by making this code but still doesn't make what i want ... i think there is a good solution better than the one i made .
public bool Connect(string IP, int Port)
{
int tries = 0;
IPAddress ipAddress = IPAddress.Parse(IP);
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, Port);
while...
[SMALL TUT] How to check if your account is connected with bigpoint.com 02/21/2014 - DarkOrbit - 31 Replies Everyone knows that there is a way to have access to your account even if you sell it to someone else - all you need is connect DarkOrbit account with bigpoint.com.
But you may have BIG problem if you want to buy account from someone. To prevent any troubles there is an easy way to check if account is connected with bigpoint.com :)
It's quite simple. All you have to do is LOGOUT from darkorbit account and see the 'logout screen'.
If it looks like the following picture (2 buttons ->...