Communications Control

The following functions can be used for external communications:

COMM

Retrieve the value or status of a communications parameter

COMM CLOSE

Close an open serial port

COMM LINE

Receive a CR/LF terminated "line" of data from a serial port

COMM OPEN

Open a serial port

COMM PRINT

Send a "line" of binary data through a serial port

COMM RECV

Receive binary data from a serial port

COMM RESET

Disable flow control for a given serial port

COMM SEND

Send a string of binary data through a serial port

COMM SET

Set communication options for a serial port

COMM TIMEOUT

Places a limit on the time to complete a COMM operation.

CONSIN

Determine if standard input has been redirected

CONSOUT   

Determine if standard output has been redirected

EOF

Return end-of-file status of a file, serial or TCP/UDP transmission

FREEFILE

Return the next available PowerBASIC file number

GETSTDERR        

Return the handle of the standard error device

GETSTDIN           

Return the handle of the standard input device

GETSTDKBD       

Return the handle of the standard keyboard device

GETSTDOUT       

Return the handle of the standard output device

GETSTDVID        

Return the handle of a nominated console video page

HOST ADDR

Translate a host name into a corresponding IP address

HOST NAME

Translate an IP address into a corresponding host name

OPEN

Prepare a file or device for reading or writing

TCP ACCEPT

Accept an incoming request for TCP communication

TCP CLOSE

Close a previously opened TCP/IP port

TCP LINE INPUT

Receive a line of text from a specified TCP/IP port

TCP NOTIFY

Designate which TCP/IP events generate notification messages

TCP OPEN

Enable an app to communicate with a TCP/IP server or client

TCP PRINT

Write a string to a nominated TCP/IP

TCP RECV

Receive data from a specified TCP/IP port

TCP SEND

Write a string to a nominated TCP/IP port

UDP CLOSE

Close a previously opened UDP socket

UDP NOTIFY

Designate which TCP/IP events generate notification messages

UDP OPEN

Create a socket to communicate with a UDP server or client

UDP RECV

Receive data from a previously opened UDP port

UDP SEND

Send a string of data through a previously opened UDP socket