Wiki Home >> N-Device-Open

N-Device-Open


Description

Opens an IOCB for network communication, and clears and resets the transmit and receive buffers for the given device. Up to eight (8) N devices can be allocated for up to 8 simultaneous client/server connections. All of the standard AUX1 values for specifying the channel direction are supported.

Parameters

ParameterDescription
AUX1Passed through to SIO layer
AUX2Passed through to SIO layer
FILENAMEN: Devicespec

For more information see:
N: SIO Command 'O' - Open

Returns

The standard CIO error codes are returned.

Examples

BASIC

To open a connection to a TCP socket at address 192.168.1.8 port 2000:

OPEN #1,12,0,"N:TCP:192.168.1.8:2000"

To listen for connections to port 2000:

OPEN #1,12,1,"N:TCP:2000"

Wiki content is mirrored from the FujiNet Github Wiki