Brunet.Services.ConnectionHandler.HandleConnection C# (CSharp) Method

HandleConnection() protected method

New edge...
protected HandleConnection ( object ct, EventArgs ea ) : void
ct object
ea System.EventArgs
return void
    protected void HandleConnection(object ct, EventArgs ea)
    {
      ConnectionEventArgs cea = ea as ConnectionEventArgs;
      Connection con = cea.Connection;
      if(con.MainType != ConnectionType.Structured) {
        return;
      }

      if(!_ondemand.ConnectionDesired(con.Address)) {
        return;
      }
      ValidConnection(con);
    }