MXEIO_CheckConnection

 

This function establishes a connection to the port of the Ethernet I/O device. Once the connection is established, a handle will be returned for additional functions.

 

C/C++

int MXEIO_CheckConnection( int hConnection,

DWORD dwTimeOut,

BYTE * bytStatus);

 

Visual Basic

Declare Function MXEIO_CheckConnection Lib "MXIO.dll" (ByVal hConnection As Long, ByVal nTimeOut As Long, bytStatus As Byte) As Long

 

Arguments:

hConnection

I/O device handle for a connection.

dwTimeOut

Timeout value for network connection.

The unit is in milliseconds.

bytStatus

Connection status

0: Check connection ok

1: Check connection fail

2: Check connection time out

 

Return Values:

Succeed

MXIO_OK

Fail

Refer to Return Codes.