Denso BHT-200QW Especificações Página 431

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 587
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 430
Chapter 17. TCP/IP
423
Function #46 .fcTStsGet
Get TCP socket status
Syntax: CALL "SOCKET.FN3" .fcTStsGet SOCKFD%, PATTERN%,
TIMEOUT%, RESULT%
Description:
This function waits until the specified TCP socket is in the specified state
or the specified time elapsed.
Parameters: SOCKFD% Socket identifier
PATTERN% Desired socket state
TIMEOUT% Waiting period (in milliseconds, 100 ms resolution)
The socket state (
PATTERN%) must be &h0020, the value indicating that
the opposite end has sent FIN to close the socket. Only TCP sockets
support this function.
.soStRmtCl &h0020
Close socket from the opposite end
(FIN received)
Note: Specifying an invalid state sometimes stops processing.
TIMEOUT% must be one of the following values:
.soNoWait
-1
No timeout
.soNotTOut
0
Read current state
1 to 32767
Wait specified time
(timer resolution: 100 ms)
Return value: RESULT% Current socket state
RESULT% contains the current socket state. After a timeout, RESULT%
contains 0.
Run-time errors:
Error code Meaning
105h
Power-off detected
209h
Socket identifier is invalid.
216h
A parameter is invalid.
Vista de página 430
1 2 ... 426 427 428 429 430 431 432 433 434 435 436 ... 586 587

Comentários a estes Manuais

Sem comentários