Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I want send a char pointer or buffer to a device using winsnmp api &oid.
right now am doing it by creating and setting a vbl and sending that vbl through a pdu. Is there any direct way i can do so.

Thanks in Advance
Posted
Updated 30-Nov-10 22:53pm
v2
Comments
CPallini 1-Dec-10 5:11am    
"right now am doing it by creating and setting a vbl and sending that vbl through a pdu" ?????

1 solution

 
Share this answer
 
Comments
praveenmankar 1-Dec-10 7:15am    
thanks..
but in all these api's we cannot pass a char pointer as argument which will directly set to the device. what i did was i create a variable list and set value to it in that value i added my char pointer then using that vbl i create the pdu and then send msg using that pdu.is there any other api so that i can directly pass my char pointer to the devise.
E.F. Nijboer 1-Dec-10 11:30am    
As the text found in the first link states: "The context parameter cannot be a C-style string."
praveenmankar 1-Dec-10 23:18pm    
i dont have a problem whether it s an smioctets struct or Cstring, but all those apis used for conversion only i cannot directly send a buffer to the device..
E.F. Nijboer 2-Dec-10 7:25am    
That seems to be the correct conclusion.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900