base.Channel methods

Table 1. Class methods
Name Description
base.Channel.create()
  RETURNS base.Channel
Create a new channel object.
Table 2. Object methods
Name Description
dataAvailable()
  RETURNS BOOLEAN
Tests if some data can be read from the channel.
close()
Closes the channel.
isEof()
  RETURNS BOOLEAN
Detect the end of a file.
openFile(
   path STRING,
   mode STRING )
Opening a file channel.
openPipe(
   command STRING,
   mode STRING )
Opening a pipe channel to a sub-process.
openClientSocket(
   host STRING,
   port INTEGER,
   mode STRING,
   timeout INTEGER )
Open a TCP client socket channel.
openServerSocket(
   interface STRING,
   port INTEGER,
   mode STRING )
Open a TCP server socket channel.
read(
   [ variableList ] )
  RETURNS INTEGER
Reads a list of data delimited by a separator from the channel.
readLine()
  RETURNS STRING
Read a complete line from the channel.
readOctets(
   length INTEGER)
  RETURNS STRING
Read a given number of bytes and return it as a character string.
setDelimiter(
   delimiter STRING )
Define the value delimiter for a channel.
write(
   [ valueList ] )
Writes a list of data delimited by a separator to the channel.
writeLine(
   value STRING )
Write a complete line to the channel.
writeNoNL(
     value STRING )
Writes a string to the channel (without newline character).