IrDAListener.Start メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IrDAListener.Start メソッドの意味・解説 

IrDAListener.Start メソッド

受信接続待機するソケット開始します

名前空間: System.Net.Sockets
アセンブリ: System.Net.IrDA (system.net.irda.dll 内)
構文構文

使用例使用例

次のコード例は、IrDAEndPoint クラス使用して接続作成し送信される要求待機開始してます。このコード例は、IrDAClient クラストピック取り上げているコード例一部分です。

' 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.
Try
    Dim i As Integer = ListBox1.SelectedIndex
    irEndP = New IrDAEndPoint(irDevices(i).DeviceID, irServiceName)
    irListen = New IrDAListener(irEndP)
    irListen.Start()
Catch exSoc As SocketException
    MsgBox("Couldn't listen on service " & irServiceName
 & ": " _
        & exSoc.ErrorCode)
End Try
// 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.
try
{
    int i = listBox1.SelectedIndex;
    irEndP = new IrDAEndPoint(irDevices[i].DeviceID,
        irServiceName);
    irListen = new IrDAListener(irEndP);
    irListen.Start();
}
catch(SocketException exSoc)
{
    MessageBox.Show("Couldn't listen on service "
        + irServiceName + ": "
        + exSoc.ErrorCode);
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IrDAListener クラス
IrDAListener メンバ
System.Net.Sockets 名前空間
Stop



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

IrDAListener.Start メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



IrDAListener.Start メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS