ConnectionTypeToString() static public method

static public ConnectionTypeToString ( ConnectionType t ) : string
t ConnectionType
return string
Ejemplo n.º 1
0
 /**
  * @param t connection type
  * @param target the Address of the target node
  * @param token unique token used to associate all connection setup messages
  *              with each other
  */
 public ConnectToMessage(ConnectionType t, NodeInfo target, string token)
 {
     _ct        = Connection.ConnectionTypeToString(t);
     _target_ni = target;
     _neighbors = new NodeInfo[0]; //Make sure this isn't null
     _token     = token;
 }
Ejemplo n.º 2
0
 public LinkMessage(ConnectionType t,
                    NodeInfo local,
                    NodeInfo remote,
                    string token)
 {
     _attributes         = new StringDictionary();
     _attributes["type"] = Connection.ConnectionTypeToString(t);
     _local_ni           = local;
     _remote_ni          = remote;
     _token = token;
 }
Ejemplo n.º 3
0
 public StatusMessage(ConnectionType ct, ArrayList neighbors)
 {
     _neigh_ct  = Connection.ConnectionTypeToString(ct);
     _neighbors = neighbors;
 }
Ejemplo n.º 4
0
 public LinkMessage(ConnectionType con_type, NodeInfo local,
                    NodeInfo remote, string realm, string token) :
     this(Connection.ConnectionTypeToString(con_type), local, remote, realm, token)
 {
 }