REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 18-Feb-2009 Edit History  

REBOL 3 Concepts: Ports

Pending Revision

This document was written for R2 and has yet to be revised for R3.

Overview

Ports access external series such as files, networks, consoles, events, databases, data encoders, and data decoders. Port data is processed using the standard REBOL series functions as described in the series Chapter.

Ports are used for both input and output. The type of data a port handles depends on how the port is opened. Three types of data are possible:

Stringa series of bytes, converts line breaks (default)
Binarya series of bytes, no conversion of the data
Blocka series of REBOL values

A port can be opened in one of two buffering modes:

Bufferedall of the data is held in memory (default)
Directdata is not held in memory

In addition, a port can be opened with:

Waitport will wait for data (default)
No-waitport will not wait for data


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin