Denso Power Net Terminal BHT-7500 Especificações Página 448

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 447
Chapter 18. TCP/IP
439
Syntax:
CALL "SOCKET.FN3" 15 SOCKFD%, RECVBUFF$[()], RECV-
LEN%,
RECVMODE%, FAMILY%, PORT%, address, RECVSIZE%
[,RECVFLAG%]
where address is ADDRESS or IPADDRESS$
Description: This function receives data from the IP address and port number con-
nected to the specified socket identifier into the specified buffer.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API recvfrom() function.
Parameters:
SOCKFD% Socket identifier
RECVBUFF$[()] Receive buffer
RECVLEN% Maximum number of bytes to receive
RECVMODE% Receive mode
FAMILY% Protocol family
PORT% Port
ADDRESS Local address for connection
IPADDRESS$ Internet address in dotted quad notation
RECVFLAG% Storage method (optional)
The receive buffer (
RECVBUFF$) can be either a string or string array
variable. The maximum size for a string is 255 bytes; for a string array,
4096.
The receive mode (
RECVMODE%) must be one of the following values:
0Normal
1 Out of band data
2 Peek at next message
The protocol family (
FAMILY%) must be 2, the value indicating the ARPA
Internet protocols.
The storage method (
RECVFLAG%) is required for a string array buffer. It
is ignored for a string variable and new data will be written.
The storage method (
RECVFLAG%) must be one of the following values:
0 Append data to buffer (default if omitted)
1 Overwrite buffer with data
Note: If
RECVFLAG% is 0 or omitted, the user application program must
initialize the receive buffer string array variable before receiving any data.
Return value:
RECVSIZE% Number of bytes received
Function #15: Receive message from UDP socket
Vista de página 447
1 2 ... 443 444 445 446 447 448 449 450 451 452 453 ... 559 560

Comentários a estes Manuais

Sem comentários