connection.eh

Generic connection framework. More...

use "connection.eh"

Types

type Connection < Any;
type StreamConnection < Connection;

Functions

def Connection.close();
def StreamConnection.open_input(): IStream;
def StreamConnection.open_output(): OStream;

Description

Connections are used by platform to connect to different sources of data. Usually you don't need to include this header as it is automatically pulled in by headers that define particular connections (such as HTTP connection or pipe connection).

Type details

type Connection < Any;
A connection to system data source.

type StreamConnection < Connection;
A connection that has underlying input and output streams.

Function details

def Connection.close();
Closes the connection. Streams derived from the connection may be open when method is called. Any open streams will cause the connection to be held open until they themselves are closed. In this latter case access to the opened streams is permitted, but access to the connection is not.

def StreamConnection.open_input(): IStream;
Opens and returns input stream for connection.

def StreamConnection.open_output(): OStream;
Opens and returns output stream for connection.