MonobjcMonobjc Documented Class Library
GetStreamsToHostPortInputStreamOutputStream Method (host, port, inputStream, outputStream)
NamespacesMonobjc.FoundationNSStreamGetStreamsToHostPortInputStreamOutputStream(NSHost, NSInteger, NSInputStream%, NSOutputStream%)

Creates and returns by reference an NSInputStream object and NSOutputStream object for a socket connection with a given host on a given port.

Original signature is '+ (void)getStreamsToHost:(NSHost *)host port:(NSInteger)port inputStream:(NSInputStream **)inputStream outputStream:(NSOutputStream **)outputStream'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void GetStreamsToHostPortInputStreamOutputStream(
	NSHost host,
	NSInteger port,
	out NSInputStream inputStream,
	out NSOutputStream outputStream
)
Public Shared Sub GetStreamsToHostPortInputStreamOutputStream ( _
	host As NSHost, _
	port As NSInteger, _
	<OutAttribute> ByRef inputStream As NSInputStream, _
	<OutAttribute> ByRef outputStream As NSOutputStream _
)
public:
static void GetStreamsToHostPortInputStreamOutputStream(
	NSHost^ host, 
	NSInteger port, 
	[OutAttribute] NSInputStream^% inputStream, 
	[OutAttribute] NSOutputStream^% outputStream
)
Parameters
host (NSHost)
The host to which to connect.
port (NSInteger)
The port to connect to on host.
inputStream (NSInputStream%)
Upon return, contains the input stream. If nil is passed, the stream object is not created.
outputStream (NSOutputStream%)
Upon return, contains the output stream. If nil is passed, the stream object is not created.
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)