Re: synchronous versus asynchronous

This is a discussion on Re: synchronous versus asynchronous within the SNMP Coders forums, part of the Networking and Network Related category; Hi, thanks for your reply. By: -- btw, you would have to explain what you mean by "bare bones snmp ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-14-2006
Alef Veld
 
Posts: n/a
Default Re: synchronous versus asynchronous

Hi,
thanks for your reply. By:
--
btw, you would have to explain what you mean by "bare bones snmp
client whose
only hook is the systems headers/libraries"

-G
--
I actually mean low-level api's. I want to code my own snmp client by
using the same techniques (i assume) net-snmp uses.

Gr,
Alef

On Nov 14, 2006, at 7:44 PM, G. S. Marzot wrote:

> Alef Veld wrote:
>> Hello,
>>
>> If i wanted to discover a large amount of hosts, which method would
>> be better. How does asynchronous work? Does it just send a bunch of
>> udp packets in a threaded fashion?
>>
>> It's just that i find the net-snmp library pretty difficult to
>> understand, and i wonder if there are some bare bones snmp client
>> whose only hook is the systems headers/libraries.
>>

>
>
> Async calls allow non-blocking sending of PDUs (see snmp_async_send
> ()) and
> provides functions to use within a select() based event loop (see
> snmp_select_info()).
>
> I am not aware of a higher level API ... although snmplib api is
> fairly high
> level for general snmp client functionality. no matter what you're
> going to have
> to do the basic steps
>
> 1) init the library
> 2)setup a session
> 3)construct a pdu
> 4)send it
> 5)process the result
>
> If you are looking for a much higher level API, see the perl SNMP
> module
> included in the release.
>
> use SNMP;
> $sess = new SNMP::Session(DestHost => localhost, Community => public);
> $val = $sess->get('sysDescr.0');
>
> btw, you would have to explain what you mean by "bare bones snmp
> client whose
> only hook is the systems headers/libraries"
>
> -G
>



-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0