NSFileHandle:acceptConnectionInBackgroundAndNotifyForModes:
Home 目次>Foundation>NSFileHandle このサイトはこちらに移転しました。

acceptConnectionInBackgroundAndNotifyForModes:

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


-(void) acceptConnectionInBackgroundAndNotifyForModes:(NSArray *)modes


【返り値】
   voidなし
【パラメータ】
   modesモードrun-loop mode


【解説】

非同期で、ストリーム型ソケットとの接続をバックグラウンドで関係を受け入れ、接続のクライアント側を表すNSFileHandleを(NSFileHandleConnectionAcceptedNotification)で返します。
詳細はacceptConnectionInBackgroundAndNotifyを見てください。
【通知】
●NSFileHandleConnectionAcceptedNotificationのuserInfo
   NSFileHandleNotificationFileHandleItem ソケット接続のクライアント側を表す(NSFileHandle)
   NSFileHandleNotificationMonitorModes 通知をポストすることができる実行ループの配列(NSArray)



【例文】


[handle10 acceptConnectionInBackgroundAndNotifyForModes:[NSArray arrayWithObject:NSEventTrackingRunLoopMode]];


(C) 2000-2009 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>Foundation>NSFileHandle
修正日2007.3.26