コード例 #1
0
        internal void Init(AccessPoint accessPoint, string password)
        {
            var pw = Encoding.UTF8.GetBytes(password);

            Array.Copy(accessPoint.Ssid, _ssid, accessPoint.Ssid.Length);
            Array.Copy(pw, _password, pw.Length);
            _securityProtocol = (byte)accessPoint.SecurityProtocol;
        }
コード例 #2
0
 public AccessPoint(Packets.AccessPoint packet)
 {
     Packet             = packet;
     Ssid               = packet.SsidName;
     IsPasswordRequired = packet.SecurityProtocol != SecurityProtocol.Open;
 }