This function is used to read a two-byte binary number in the socket by carrying out a conversion from the standard TCP/IP coding format (Big Endian encoding).

 

Context

 

Parameters

NUM_BIN_4

Socket

Socket handle.

NUM_BIN_2

Value

Value read.

NUM_BIN_4

ReturnCode

Operation return code:

0          Operation completed successfully

Other   Specific error code

 

Example

...

 

NUM_BIN_4

Socket

NUM_BIN_2

Data

NUM_BIN_4

Rc

...

 

 

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockRecvNumBin2' Socket Data Rc

 

IF Rc = 0

   * reception successful

   ...

 

List of the VaToolBx functions by topic

 

↑ Top of page