E42_Message_Start

 

This function code is used to start receive active message of ioLogik 4200 network adapters.

 

C/C++

int E42_Message_Start ( int iProtocol,

WORD wPort,

pfnCALLBACK iProcAddress);

 

Callback Function

void FunctionName( BYTE bytData[ ],

WORD wSize );

 

Visual Basic

Declare Function E42_Message_Start Lib "MXIO.dll" (ByVal nProtocol As Long, ByVal iPort as Integer, ByVal nProcAddress As Long) As Long

 

Callback Function

Public Sub FunctionName(bytData As Long, ByVal iSize As Integer)

 

NOTE:

Message Command is not recommend to use by VB. Please refer the Exmaple file for more detail. If you want to use it by VB language, please select P-Code while compiling to execute file.

 

Arguments:

iProtocol

Transmission protocol.

1: TCP

2: UDP

wPort

TCP or UDP port number.

iProcAddress

Callback function, which is called after receive an active message form ioLogik 4200 Ethernet module.

bytData

An array that stores the message.

wSize

Array size.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.