This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
UDP_ReceiveFrom
|
UDP_ReceiveFrom ( udp_ID ; hostName ; remotePort ; text ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
udp_ID | Longint |
![]() |
UDP socket reference | |||||
hostName | Text variable |
![]() |
Name or IP address of server that responds | |||||
remotePort | Longint variable |
![]() |
Port of remote server that responds | |||||
text | Text |
![]() |
Text received | |||||
Function result | Integer |
![]() |
Error code | |||||
The UDP_ReceiveFrom command can be used to receive text that is sent via the udp_ID socket.
Pass variables in the hostName and remotePort parameters. After the command is executed, these variables will contain, respectively, the name (or IP address) and the port number of the remote server from which the text was received.
The text received is returned in the text parameter.
Product: 4D
Theme: IC UDP
Number:
88846
Created: 4D Internet Commands v11
4D Internet Commands ( 4D v20)