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.

EOF

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

FREEFILE

Return the next available PowerBASIC file number

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