UDP_New

4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next

version 11


UDP_New (localPort; udp_ID) Integer

ParameterTypeDescription
localPortInteger Local port used for UDP socket
(0 = find any unused port to use)
udp_IDLongint UDP socket reference
Function resultIntegerError code

Description

The UDP_New command can be used to create a UDP socket by passing the local port number to be used in the localPort parameter. If you pass 0, the command will find any unused port. The UDP socket reference will be returned in the udp_ID parameter. Once this socket is no longer needed, remember to close it using UDP_Delete in order to free up memory.

See Also

UDP_Delete.


4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next