Registers a given port as a network service with the specified name in the local domain.
Original signature is '- (BOOL)registerPort:(NSPort *)port name:(NSString *)portName nameServerPortNumber:(uint16_t)portNumber'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool RegisterPortNameNameServerPortNumber( NSPort port, NSString portName, ushort portNumber )
Public Overridable Function RegisterPortNameNameServerPortNumber ( _ port As NSPort, _ portName As NSString, _ portNumber As UShort _ ) As Boolean
public: virtual bool RegisterPortNameNameServerPortNumber( NSPort^ port, NSString^ portName, unsigned short portNumber )
Return Value
YES if successful, NO otherwise.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)