Re: simultaneous communication

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 03/01/07, Fabien CASTAGNET <[email protected]> wrote:
>  I would like to know, if it is possible to do simultaneously:
>  - get MIB data X to machine B, from machine A
>  - get MIB data Y to machine B, from machine A

>  - for the get, I use snmp_pdu_create(SNMP_MSG_GET) and snmp_synch_response

If you're using 'snmp_synch_response', then this will block, waiting
for an answer.
If you need to send two requests in parallel, then you'll need to use an
asynchronous approach.



>  or also to do simultaneous:
>  - get MIB data X to machine B, from machine A
>  - set MIB data Y to machine B, from machine A

The same comment applies.
But in addition, the agent will deliberately block when processing a
SET request.
It won't accept any further GET requests until the SET has completed.

Two GET requests may *possibly* be processed in parallel by the agent
(mostly if they're being sent to separate subagents, or MIB modules explicitly
coded to support this).  A GET and a SET will not.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.