Stream.open()

DESCRIPTION

Open this stream. Blocks until the stream is opened or an error occurs.

DECLARATION

    public func open(streamPort: UInt32) throws 

PARAMETERS

streamPort:
The listening id/port to use for the stream. This is used to distinguish streams in the other end, like a port number.

THROWS ERRORS

STOPPED:
the stream could not be opened as the handshake was aborted - this includes an invalid port specified and access denied due to insufficient permissions