示例#1
0
		/// <summary>
        /// Creates a new instance of <see cref="BluetoothClient"/>.
		/// </summary>
		public BluetoothClient()
		{
                
            try
            {
                this.Client = new Socket(AddressFamily32.Bluetooth, SocketType.Stream, BluetoothProtocolType.RFComm);
            }
            catch (SocketException se)
            {
                throw new PlatformNotSupportedException("32feet.NET does not support the Bluetooth stack on this device.", se);
            }
            m_optionHelper = new SocketOptionHelper(this.Client);
		}
示例#2
0
        internal BluetoothClient(Socket acceptedSocket)
		{
            this.Client = acceptedSocket;
            active = true;
            m_optionHelper = new SocketOptionHelper(this.Client);
        }