Hello Friends
Finally I got solution to my problem.
my agent able to connect main agent
I forgot to call
SOCK_STARTUP;
fuction before init_agent function call
this is nesessary because init_agent function internally
call socket function & if we don't call SOCK_STARTUP before
socket it will give you following error
Socket Error # 10093
Socket error (#10093): Successful WSAStartup not yet performed
because SOCK_STARTUP internally call WSAStartup which is
need to call before socket system call in windows.
thats the reason my suagent not able to connect to main agent
beacause i haven't called WSAStartup.
after 2 days of effort i finally found the problem
so take care to call SOCK_STARTUP before init_agent  in windows
Have Good Day friends
Bye
Regards
Bhushan




On 12/7/06, bhushan <[EMAIL PROTECTED]> wrote:

yes i tried with that version also
it wont work
thanks for reply
Regards
Bhushan
On 12/7/06, Magnus Fromreide < [EMAIL PROTECTED]> wrote:
>
> On ons, 2006-12-06 at 18:04 +0530, bhushan wrote:
> > hello friends
> > for finding reason for this failure i found that
> > following function get call when i call init_agent
> > init_agent
> > |--subagent_pre_init
> >                 |--agentx_reopen_session
> >                             |--subagent_open_master_session
> >                                     |---snmp_open_ex
> >                                                |---snmp_sess_open
> >                                                        |-- _sess_open
>
> ...
>
> This code is rewritten for 5.4, does it work better if you try with that
> version?
>
> /MF
>
>


--
            bhushan. E . Sonawane




--
           bhushan. E . Sonawane
-------------------------------------------------------------------------
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to