In The Hand
AcceptSocket Method
NamespacesInTheHand.Net.SocketsBluetoothListenerAcceptSocket()()()
.NET Components for Mobility
Creates a new socket for a connection.
Declaration Syntax
C#Visual Basic
public Socket AcceptSocket()
Public Function AcceptSocket As Socket
Return Value
A Socket used to send and receive data.
Remarks
AcceptSocket is a blocking method that returns a Socket that you can use to send and receive data. If you want to avoid blocking, use the Pending()()() method to determine if connection requests are available in the incoming connection queue.

The Socket returned is initialized with the address and channel number of the remote device. You can use any of the Send and Receive methods available in the Socket class to communicate with the remote device. When you are finished using the Socket, be sure to call its Close()()() method. If your application is relatively simple, consider using the AcceptBluetoothClient()()() method rather than the AcceptSocket method. BluetoothClient provides you with simple methods for sending and receiving data over a network in blocking synchronous mode.

Exceptions
ExceptionCondition
InvalidOperationExceptionListener is stopped.

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