In The Hand
BluetoothClient Class
NamespacesInTheHand.Net.SocketsBluetoothClient
.NET Components for Mobility
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.

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.

BeginDiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean, AsyncCallback, Object)
Client
Gets or sets the underlying Socket.

Close()()()
Closes the BluetoothClient and 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.

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

Dispose()()()
Closes the BluetoothClient and the underlying connection.

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.

EndDiscoverDevices(IAsyncResult)
Ends an asynchronous Service Record lookup query.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(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.)
InquiryAccessCode
InquiryLength
Amount of time allowed to perform the query.

LingerState
Gets or sets a value that specifies whether the client will delay closing in an attempt to send all pending data.

LinkKey
Returns link key associated with peer Bluetooth device.

LinkPolicy
Returns the Link Policy of the current connection.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
RemoteEndPoint
Get the remote endpoint.

RemoteMachineName
Gets the name of the remote device.

SetPin(String)
Sets the PIN associated with 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 and Widcomm Bluetooth stacks, devices which use the other stacks will not work.
Inheritance Hierarchy
Object
BluetoothClient

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