CallGetStatus() публичный Метод

public CallGetStatus ( string type, Connection c ) : void
type string
c Brunet.Connections.Connection
Результат void
Пример #1
0
 public void Start()
 {
     try {
         //This edge could have been closed, which will
         //cause the Rpc to throw an exception
         Node.CallGetStatus(ConType, Neighbor);
     }
     catch (EdgeClosedException) {
         //Just ignore this connection if it is closed
     }
     catch (EdgeException ex) {
         if (!ex.IsTransient)
         {
             //Make sure this Edge is closed before going forward
             //@TODO this is not safe, EdgeException should keep a ref to the edge that threw
             Neighbor.State.Edge.Close();
         }
     }
     catch (Exception x) {
         if (ProtocolLog.Exceptions.Enabled)
         {
             ProtocolLog.Write(ProtocolLog.Exceptions, String.Format(
                                   "CallGetStatus() on {0} failed: {1}", Neighbor, x));
         }
     }
 }