MonobjcMonobjc Documented Class Library
NSSocketPort Constructor (port)
NamespacesMonobjc.FoundationNSSocketPortNSSocketPort(UInt16)

Initializes the receiver as a local TCP/IP socket of type SOCK_STREAM, listening on a specified port number.

Original signature is '- (id)initWithTCPPort:(unsigned short)port'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSSocketPort(
	ushort port
)
Public Sub New ( _
	port As UShort _
)
public:
NSSocketPort(
	unsigned short port
)
Parameters
port (UInt16)
The port number for the newly created socket port to listen on. If port is 0, the system will assign a port number.
Return Value
An initialized local TCP/IP socket of type SOCK_STREAM, listening on port port.
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)