Mitsubishi Electric QJ71E71-100 User Manual page 418

Q corresponding ethernet interface module
Table of Contents

Advertisement

void Sockerror(int error_kind_A, int error_kind_B) // Error handling function
{
if (error_kind_A == ERROR_INITIAL){
printf("Initial processing is abnormal. \n");
}
else{
nErrorStatus = WSAGetLastError();
switch(error_kind_A){
case ERROR_SOCKET:
case ERROR_BIND:
case ERROR_CONNECT:
case ERROR_SEND:
case ERROR_SHUTDOWN:
case ERROR_CLOSE:
}
switch(error_kind_B){
case ERROR_SOCKET:
case ERROR_BIND:
case ERROR_CONNECT:
case ERROR_SHUTDOWN:
case ERROR_CLOSE:
}
}
printf("Error code is %d. \n", nErrorStatus);
(To the next page)
416
printf("Socket could not be created. (System A)\n");
break;
printf("Bind could not be executed. (System A)\n");
break;
printf("Connection could not be established. (System A)\n");
break;
printf("Send could not be executed. \n");
break;
printf("Shutdown could not be executed. (System A)\n");
break;
printf("Normal close could not be executed. (System A)\n");
break;
printf("Socket could not be created. (System B)\n");
break;
printf("Bind could not be executed. (System B)\n");
break;
printf("Connection could not be established. (System B)\n");
break;
printf("Shutdown could not be executed. (System B)\n");
break;
printf("Normal close could not be executed. (System B)\n");
break;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71e71-b5Qj71e71-b2

Table of Contents