Chapter 6
Planning Your Application Program
6-2-4 Return Codes Using these function libraries, you can read
the error message and the against response from the returning codes.
ADAM5KTCP_NoError (0)
ADAM5KTCP_StartupFailure (-1)
ADAM5KTCP_SocketFailure (-2)
ADAM5KTCP_UdpSocketFailure (-3)
ADAM5KTCP_SetTimeoutFailure (-4)
ADAM5KTCP_SendFailure (-5)
ADAM5KTCP_ReceiveFailure (-6)
ADAM5KTCP_ExceedMaxFailure (-7)
ADAM5KTCP_CreateWsaEventFailure (-8)
ADAM5KTCP_ReadStreamDataFailure (-9)
ADAM5KTCP_InvalidIP (-10)
ADAM5KTCP_ThisIPNotConnected (-11)
ADAM5KTCP_AlarmInfoEmpty (-12)
6-30 ADAM-5000/TCP User’s Manual