[snmp] Re: AsnInteger

Birgit Arkesteijn birgit at westhawk.co.uk
Tue May 27 18:00:42 BST 2008


Hi Josh,

I changed and checked in the classes:
- AsnInteger
- AsnNull
- AsnUnsInteger64

so they all set the type field of the parent class to the appropriate value.

I *should* really change the call to AsnBuildHeader so it uses the 
"type" variable instead of a hardcoded value, but since I'm not doing 
any testing at the moment, I don't want to run the risk of introducing 
more errors.

Cheers, Birgit

On 22/05/08 21:21, Josh Bers wrote:
> The constructor for AsnInteger(int) does not set the type field of the 
> parent class to SnmpContants.ASN_INTEGER. This difficiency is worked 
> around in the write method where the type is hardcoded in the call to 
> AsnBuildHeader, however, it does not allow use of the getRespType() 
> method since it will always erroneously return 0.
> 
>  
> 
> Josh Bers
> 
> Senior Engineer, Mobile Networking Systems
> 
> BBN Technologies
> 
> web: www.bbn.com <http://www.bbn.com> ph: (617) 873-4262 fax: (617) 873-4523
> 
>  
> 

-- 
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>


More information about the snmp mailing list