Metrologic IS1000 Series Podręcznik Użytkownika Strona 135

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 198
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 134
Chapter
5
BASIC
Commands
129
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
3000
3004
3007
3012
Normal - data can be sent
Invalid connection number
Connection is closed
Cannot send data
Never run START TCPIP
"N%" is an integer variable in the range of 0 to 3, indicating the connection number.
"L%" is an integer variable, indicating the length of data.
Example
A% = SOCKET_CAN_SEND (0, 10)
See Also
NCLOSE, NWRITE, TCP_ERR_CODE, TCP_OPEN
SOCKET_HAS_DATA
Purpose
To check if the buffer of connection has data or not.
Syntax
A% = SOCKET_HAS_DATA(N%)
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
3000
3004
3005
3012
Normal - data in buffer
Invalid connection number
Connection is closed
No data
Never run START TCPIP
"N%" is an integer variable in the range of 0 to 3, indicating the connection number.
Example
A% = SOCKET_HAS_DATA(0)
See Also
NCLOSE, NREAD$, OFF TCPIP, ON TCPIP GOSUB…, TCP_ERR_CODE,
TCP_OPEN
SOCKET_IP$
Purpose
To get network settings.
Syntax
A$ = SOCKET_IP$(port%)
Przeglądanie stron 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 197 198

Komentarze do niniejszej Instrukcji

Brak uwag