Please enable JavaScript to view this site.

Function for closing an UDP communication.

Syntax

i32 udp_close (i32 idx)

idx

Number of the handler of the UDP communication to be closed

Result

Returns:

Value

Meaning

0

Operation performed successfully

-1

Illegal idx value

-2

Socket already closed

-1000 -:- -2000

Error code of the S.O. close() function, with an offset of 1000

To see more specifically some values indicating error, see Returned Errors Table

Validity

Rule, Task

Note


For a concrete example see in RDE environment: Workspace -> Specials -> Examples Library.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC