macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

acceptConnectionInBackgroundAndNotify

Index>Foundation>NSFileHandle

非同期で、ストリーム型ソケットとの接続をバックグラウンドで関係を受け入れます

解説

非同期で、ストリーム型ソケットとの接続をバックグラウンドで受け付けます。
通信チャンネルのニア(クライアント側)のNSFileHandleを作成します。

返り値

( void )

なし

引数

クラス

NSFileHandle

Instance Methods

使用可能

10.0

参照

- enqueueNotification:postingStyle:coalesceMask:forModes:(NSNotificationQueue)
-readInBackgroundAndNotify
-readToEndOfFileInBackgroundAndNotify

例文

handle10 = [[NSFileHandle alloc] initWithFileDescriptor:1 closeOnDealloc:YES];

[handle10  acceptConnectionInBackgroundAndNotify];