MonobjcMonobjc Documented Class Library
InitRemoteWithTCPPortHost Method (port, hostName)
NamespacesMonobjc.FoundationNSSocketPortInitRemoteWithTCPPortHost(UInt16, NSString)

Initializes the receiver as a TCP/IP socket of type SOCK_STREAM that can connect to a remote host on a specified port.

Original signature is '- (id)initRemoteWithTCPPort:(unsigned short)port host:(NSString *)hostName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitRemoteWithTCPPortHost(
	ushort port,
	NSString hostName
)
Public Overridable Function InitRemoteWithTCPPortHost ( _
	port As UShort, _
	hostName As NSString _
) As Id
public:
virtual Id^ InitRemoteWithTCPPortHost(
	unsigned short port, 
	NSString^ hostName
)
Parameters
port (UInt16)
The port to connect to.
hostName (NSString)
The host name to connect to. hostName may be either a host name or an IPv4-style address.
Return Value
A TCP/IP socket port of type SOCK_STREAM that can connect to the remote host hostName 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)