Exemple #1
0
 /// <summary>
 /// Normal constructor for this object.
 /// </summary>
 /// <param name="lti">The link detected.</param>
 /// <param name="nid">The access network identifier if applicable.</param>
 /// <param name="naid">An auxiliary access network identifier if applicable.</param>
 /// <param name="sigStrPc">The signal strength of the detected link (in percentage).</param>
 /// <param name="sigStrDbm">The signal strength of the detected link (in dBm).</param>
 /// <param name="sinr">The Signal/Noise ratio.</param>
 /// <param name="ldr">The maximum transmission rate on the detected link.</param>
 /// <param name="lmcf">Indicates which MIH capabilities are supported on the detected link.</param>
 /// <param name="nc">The network capabilities supported by the network link.</param>
 public Link_Det_Info(Link_Tuple_Id lti, OctetString nid, OctetString naid, uint sigStrPc, int sigStrDbm, int sinr, int ldr, Link_MIHCap_Flag lmcf, Net_Caps nc)
 {
     this.LinkTuppleId = lti;
     this.NetworkID = nid;
     this.NetworkAuxId = naid;
     this.SigStrInPc = sigStrPc;
     this.SigStrInDbm = sigStrDbm;
     this.SINR = sinr;
     this.LinkDataRate = ldr;
     this.LinkMIHCapFlag = lmcf;
     this.NetCaps = nc;
 }
Exemple #2
0
 /// <summary>
 /// Generates a byte[] representation of a Link_Addr.
 /// </summary>
 private void GenerateValue()
 {
     byte[] bval;
     switch (Address_type)
     {
         case Address_Type.MAC_ADDR: bval = new Transport_Addr(6, Address_value).ByteValue; break;
         default: bval = new OctetString(Address_value).ByteValue; break;
     }
     ByteValue = Serialization.Choice(bval, (int)Address_type);
 }
Exemple #3
0
 /// <summary>
 /// Default constructor for this object.
 /// </summary>
 /// <param name="aType">The Link Address type. (More info: http://www.iana.org/assignments/address-family-numbers/address-family-numbers.xml ) </param>
 /// <param name="aVal">The actual address.</param>
 public Transport_Addr(ushort aType, string aVal)
 {
     AddressType = aType;
     AddressValue = new OctetString(aVal);
 }
Exemple #4
0
 /// <summary>
 /// Default constructor for the Link_Scan_Rsp.
 /// </summary>
 /// <param name="la">The PoA link address.</param>
 /// <param name="nid">The network ID.</param>
 /// <param name="ss">The signal strength for the specified network ID.</param>
 public Link_Scan_Rsp(Link_Addr la, OctetString nid, ushort ss)
 {
     this.linkAddr = la;
     this.NetworkID = nid;
     this.Sig_Strength = ss;
 }
Exemple #5
0
 /// <summary>
 /// ID constructor.
 /// </summary>
 /// <param name="id">id OctectString</param>
 public ID(OctetString id)
 {
     this.id = id;
 }
Exemple #6
0
 /// <summary>
 /// OctectString Constructor.
 /// </summary>
 /// <param name="os">OctectString object.</param>
 public OctetString(OctetString os)
     : this(os.StringValue)
 {
 }