This documentation is archived and is not being maintained.

IrDAListener.Start Method

Starts the socket to listen for incoming connections.

Namespace: System.Net.Sockets
Assembly: System.Net.IrDA (in

Public Sub Start
Dim instance As IrDAListener

public void Start ()
public function Start ()

The following code example creates a connection, with the IrDAEndPoint class, and starts listening for incoming requests. This code example is part of a larger example provided for the IrDAClient class.

' Create a connection, with the IrDAEndPoint class,
' for the selected device in the list box.
' Start listening for incoming requests from
' that device with an IrDAListener object.
    Dim i As Integer = ListBox1.SelectedIndex
    irEndP = New IrDAEndPoint(irDevices(i).DeviceID, irServiceName)
    irListen = New IrDAListener(irEndP)
Catch exSoc As SocketException
    MsgBox("Couldn't listen on service " & irServiceName & ": " _
        & exSoc.ErrorCode)
End Try

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0, 1.0