In The Hand - .NET Components for Mobility
BluetoothClient Class
NamespacesInTheHand.Net.SocketsBluetoothClient
Provides client connections for Bluetooth network services.
Declaration Syntax
C#Visual Basic
public class BluetoothClient : IDisposable
Public Class BluetoothClient _
	Implements IDisposable
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
BluetoothClient()()()
Creates a new instance of BluetoothClient.

BluetoothClient(BluetoothEndPoint)
Initializes a new instance of the BluetoothClient class and binds it to the specified local endpoint.

Active
Gets or set a value that indicates whether a connection has been made.

Authenticate
Gets or sets the authentication state of the current connect or behaviour to use when connection is established.

Available
Gets the amount of data that has been received from the network and is available to be read.

BeginConnect(BluetoothAddress, Guid, AsyncCallback, Object)
Begins an asynchronous request for a remote host connection. The remote host is specified by a BluetoothAddress and a service identifier (Guid).

BeginConnect(BluetoothEndPoint, AsyncCallback, Object)
Begins an asynchronous request for a remote host connection. The remote host is specified by a BluetoothEndPoint.

Client
Gets or sets the underlying Socket.

Close()()()
Disposes this BluetoothClient instance without closing the underlying connection.

Connect(BluetoothEndPoint)
Connects a client to a specified endpoint.

Connect(BluetoothAddress, Guid)
Connects the client to a remote Bluetooth host using the specified Bluetooth address and service identifier.

Connected
Gets a value indicating whether the underlying Socket for a BluetoothClient is connected to a remote host.

DiscoverDevices()()()
Discovers accessible Bluetooth devices and returns their names and addresses.

DiscoverDevices(Int32)
Discovers accessible Bluetooth devices and returns their names and addresses.

DiscoverDevices(Int32, Boolean, Boolean, Boolean)
Discovers accessible Bluetooth devices and returns their names and addresses.

Dispose(Boolean)
Releases the unmanaged resources used by the BluetoothClient and optionally releases the managed resources.

Dispose()()()

Encrypt
On unconnected sockets, enforces encryption to establish a connection. Encryption is only available for authenticated connections. For incoming connections, a connection for which encryption cannot be established is automatically rejected and returns WSAEHOSTDOWN as the error. For outgoing connections, the connect function fails with WSAEACCES if encryption cannot be established. In response, the application may prompt the user to authenticate the two Bluetooth devices before connection.

EndConnect(IAsyncResult)
Asynchronously accepts an incoming connection attempt.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Frees resources used by the BluetoothClient class.
(Overrides Object.Finalize()()().)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetRemoteMachineName(BluetoothAddress)
Gets the name of the specified remote device.

GetRemoteMachineName(Socket)
Gets the name of a device by a specified socket.

GetStream()()()
Gets the underlying stream of data.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
InquiryLength
Amount of time allowed to perform the query.

LinkKey
Returns link key associated with peer Bluetooth device.

LinkPolicy
Returns the Link Policy of the current connection.

LocalVersion
Retrieves the version of the local Bluetooth equipment.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Pin
Sets the PIN associated with the currently connected device.

RemoteMachineName
Gets the name of the remote device.

SetPin(BluetoothAddress, String)
Set or change the PIN to be used with a specific remote device.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
This class currently only supports devices which use the Microsoft Bluetooth stack such as the Orange SPV E200, devices which use the WidComm stack will not work.
Inheritance Hierarchy
Object
BluetoothClient

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 2.2.0.0