Check whether is connected to server

Name Description
IsConnected() Check whether is connected to server
IsConnected(int)
IsConnected(object) Check whether is connected to server