snmpStopListen (Function)

Top  Previous  Next

Architecture:

NX32L

Firmware version:

1.50.00


This function will stop a listening operation.

 

Input:

All : BOOL (default FALSE)

Set to TRUE when all listening operations are to be closed.

 

Output:

Handle : SYSHANDLE

The handle to the connection. The handle will be cleared.

 

Returns: INT

1

- Success.

0

- This function is not supported.

-1

- Invalid handle.

-12

- General error.

-20

- Manager is not running.

 

 

Declaration

FUNCTION snmpStopListen : INT;
VAR_INPUT
   All     : BOOL := FALSE;
   Handle  : ACCESS SYSHANDLE;
END_VAR;
 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   rc          : INT;
   default_udp : SYSHANDLE;
END_VAR;
   ...
   rc := snmpStopListen(handle := default_udpall := TRUE);
   DebugFmt(message := "snmpStopListen (rc=\1)", v1 := rc);
   ...
BEGIN
   ...
END;
END_PROGRAM;