Stream and Socket Functions

(see also: File I/O Functions, String and Buffer Functions)

BlockWrite               Writes a block of data to a stream.

BuffStream             Returns an in-memory read/write (expanding) buffer stream.

ClientSocket             Opens a client WinSock compliant socket stream and returns its socket number, a stream value, or an error code.

CloseStream            Closes and flushes any type of open stream and returns its own error code.

DBGetStream           Executes in its own thread to convert a database to a stream, and returns an indication of parameter errors.

FileStream               Returns a stream attached to a disk file or printer.

GetStreamLength      Returns the present length of a stream in bytes.

GetStreamType        Returns a type indication for a stream.

ModemStream         Opens a serial stream on a modem and returns its status (prior to the connection being made), a modem stream (after the connection has been established), or an error code.

PackParms              (RPC Mgr Library) Packs supplied parameters into a stream.

PackRPC                 (RPC Mgr Library) Packs an RPC call and a set of parameters into a stream

PeekStream             Returns a string of bytes from a stream without removing them from the stream.

PipeStream              Returns a stream based on an operating system named pipe.

Read                      (VTS driver library) Used by a tag to create a request for a single read of a given driver address.

ReadBlock               (VTS driver library) Launched to read a block of data from a PLC.

RunPack                  (RPC Mgr Library)Unpacks and executes a set of RPCs from a stream constructed with PackRPC.

Seek                      Changes and returns the current position within a stream. The return value is the current stream position after the seek is done.

SerialStream            Returns a serial stream that can be used in any of the serial port functions or with any of the stream functions.

ServerSocket           Returns a server WinSock socket stream given a handle returned by a SocketServerStart function or an integer error code.

ShiftStream             Inserts or deletes characters from a stream and returns its own error code.

SocketAttribs           Returns information about a TCP/IP socket's attributes.

SocketPingSetup       Starts the transmission of automatic keep-alive "ping" messages through a socket stream.

SocketServerEnd      Ends a TCP/IP socket server.

SocketServerStart    Starts a TCP/IP socket server and returns a handle to it.

SocketWait              Returns true when a client connects to a socket offered by a socket server.

SRead                    Reads values from a formatted stream and returns the number of values not read.

StreamEnd              Returns whether or not a stream is at the end.

SWrite                    Writes ASCII or binary data to a stream and returns the number of data items not written.

TCPIPReset              Shuts down and resets all TCP/IP functions.

TempFileStream       This function uses the OS tmpfile() function to create a temporary file on disk and to connect a stream to the temporary file. The temporary file is removed when the stream is closed or no longer referenced, or if the VTS process is terminated.

UnPackparms           (RPC Mgr Library) Unpacks a stream into the supplied parameters.

Write                      (VTS Driver Library) Used by a tag to create a write request to a driver address