Instance Method インスタンスメソッド

portForName:

Looks up and returns the port registered under the specified name on the local host. ローカルホスト上でこの指定された名前のもと登録されたポートを調べて返します。

Declaration 宣言

- (NSPort *)portForName:(NSString *)name;

Parameters パラメータ

portName

The name of the desired port. 望むポートのもつ名前。

Return Value 戻り値

The port associated with portName on the local host. Returns nil if no such port exists. ローカルホスト上でportNameと結び付けられたポート。nilを返します、もしそのようなポートが存在しないならば。

Discussion 議論

Invokes portForName:host:nameServerPortNumber: with nil as the host name and 0 as the name server port number. portForName:host:nameServerPortNumber:を、ホスト名としてnilそしてネームサーバポート番号として0で発動してください。

See Also 参照

Looking up Ports ポートを調べる