4D Internet Commands v14

UDP_New

Home

 
4D Internet Commands v14
UDP_New

UDP_New 


 

UDP_New ( localPort ; udp_ID ) -> Function result 
Parameter Type   Description
localPort  Integer in Local port used for UDP socket (0 = find any unused port to use)
udp_ID  Longint in UDP socket reference
Function result  Integer in Error code

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.

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC UDP
Number: 88850

 
HISTORY 

Created: 4D Internet Commands v11

 
SEE ALSO 

UDP_Delete

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)