
372
[ 3 ] Programming Notes for Socket API
If TCP/IP communication becomes no longer possible during data transmission, extended
functions
SOCKET.FN3 and FTP.FN3 will return any of the following run-time errors will be
returned. For details about those extended functions, refer to Sections 17.5, "Socket Library
(SOCKET.FN3)" and 17.6, "FTP Library (FTP.FN3):"
Run
RunRun
Run-
--
-tim
timtim
time errors:
e errors:e errors:
e errors:
Error code Meaning
105h
Power-off detected. (The BHT has been turned off during data
transmission and then turned on. The communications device
remains off.)
106h
An internal error has occurred in the TCP/IP module during data
transmission.
108h
The memory for the TCP/IP module has became insufficient
during data transmission.
Error recovery procedure from run
Error recovery procedure from runError recovery procedure from run
Error recovery procedure from run-
--
-time errors 105h, 106h, and 108h
time errors 105h, 106h, and 108htime errors 105h, 106h, and 108h
time errors 105h, 106h, and 108h
(1) Use the ON ERROR GOTO statement for error interrupt (In the error-handling routine, none
of (3) through (5) should be carried out.)
(2) Use the RESUME statement for transferring control to the main program
(3) Close the socket.
(4) Disconnect the TCP/IP communications pathway.
(5) Close the communications device (This step is applicable to error 105h.)
Given below is a sample program for error occurrence. (This sample shows only the skeleton
of communication program and requires modification in actual programming as necessary.)
Comentarios a estos manuales