Products Downloads


French version


 


This function is used to read one byte in the socket.

As Adelia does not have a BYTE type, data is converted from a NUM_BIN_2-type and only the lightweight byte is processed (the values will range from 0 to 255).


Context

  • Windows client,

  • Windows server,

  • Java client,

  • Java server,

  • Adelia Web client,

  • Adelia Cloud client,

  • Event Adelia client.


Parameters

NUM_BIN_4

Socket

Socket handle.

NUM_BIN_2

Value

Value read.

NUM_BIN_4

ReturnCode

Operation return code:

0          Operation completed successfully

-2       Timeout

Other   Specific error code


Example

...


NUM_BIN_4

Socket

NUM_BIN_2

Data

NUM_BIN_4

Rc

...



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

IF Rc = 0

   * reception successful

   ...


List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette