beautypg.com

Esnmp_are_you_there – Compaq AAR04BCTE User Manual

Page 73

background image

eSNMP API Routines

esnmp_are_you_there

esnmp_are_you_there

Requests the master agent to report immediately that it is up and functioning.

Format

int esnmp_are_you_there ( ) ;

Description

The

esnmp_are_you_there

routine does not block waiting for a response. The

routine is intended to cause the master agent to reply immediately. The response
should be processed by calling the

esnmp_poll

routine.

If a response is not received within the timeout period, the application code
should restart the eSNMP protocol by calling the

esnmp_init

routine. No timers

are maintained by the eSNMP library.

Return Values

ESNMP_LIB_OK

The request was sent.

ESNMP_LIB_LOST_
CONNECTION

The request cannot be sent because the master
agent is down.

eSNMP API Routines 5–15