CGSF.TCPNetwork.IsConnected C# (CSharp) Method

IsConnected() public method

public IsConnected ( ) : bool
return bool
        public bool IsConnected()
        {
            if (tcp == null)
                return false;

            return tcp.Connected;
        }

Usage Example

Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (network.IsConnected())
     {
         connectionText.text = "Connected";
     }
     else
     {
         connectionText.text = "Disconnected";
     }
 }
All Usage Examples Of CGSF.TCPNetwork::IsConnected