Declaration of the Ethernet functions.
More...
Go to the source code of this file.
Declaration of the Ethernet functions.
- Revision
- 196
Definition in file SDK_Communication_Ethernet.mh.
◆ sdkEthernetPrintConnectionStatus()
| long sdkEthernetPrintConnectionStatus |
( |
long |
status | ) |
|
Definition at line 50 of file SDK_Communication_Ethernet.mc.
54 case -2: print(
"SOCK_STATUS_ERROR ");
56 case -1: print(
"SOCK_STATUS_ERRORSENDING");
58 case 0: print(
"SOCK_STATUS_INIT");
60 case 1: print(
"SOCK_STATUS_WAITING");
62 case 2: print(
"SOCK_STATUS_CONNECTING");
64 case 3: print(
"SOCK_STATUS_READY");
66 case 4: print(
"SOCK_STATUS_CLOSED");
68 default: print(
"SOCK_UNKNOW_STATUS: ",status);
◆ sdkEthernetPrintGeneralResult()
| long sdkEthernetPrintGeneralResult |
( |
long |
result | ) |
|
Definition at line 89 of file SDK_Communication_Ethernet.mc.
91 printf(
"sdkEthernetPrintGeneralResult: ");
94 case 0: print(
"No error, everything OK");
96 case -1: print(
"Out of memory error");
98 case -2: print(
"Buffer error");
100 case -3: print(
"Timeout");
102 case -4: print(
"Routing problem");
104 case -5: print(
"Operation in progress");
106 case -6: print(
"Illegal value");
108 case -7: print(
"Operation would block");
110 case -8: print(
"Address in use");
112 case -9: print(
"Already connected");
114 case -10: print(
"Connection aborted");
116 case -11: print(
"Connection reset");
118 case -12: print(
"Connection closed");
120 case -13: print(
"Not connected");
122 case -14: print(
"Illegal argument");
124 case -115: print(
"Low-level netif error");
126 case -21: print(
"Invalid handle has been passed");
128 case -22: print(
"Limit of socket connection exceeded");
130 case -23: print(
"The socket is not connected");
132 case -24: print(
"Too much data has been attempted to send");
134 case -25: print(
"Previous data not yet sent");
136 case -26: print(
"Previously received data has not been read and new data has arrived");
138 case -27: print(
"Received telegram is too long for the internal buffer");
140 case -28: print(
"This controller does not support the socket feature");
142 case -29: print(
"The requested protocol type is not supported");
144 default: print(
"Unknown result: ",result);
◆ sdkEthernetSendString()
| long sdkEthernetSendString |
( |
wchar |
sendArray[], |
|
|
long |
handle |
|
) |
| |
Definition at line 25 of file SDK_Communication_Ethernet.mc.
29 print(
"sdkEthernetSendString: ", sendArray);
30 result = EthernetSendTelegram(handle, sendArray, arraylen(sendArray));