Questions regarding current API
D. R. Evans
N7DR____arrl.net
Fri May 9 17:56:12 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think that I have figured out all the changes necessary to accommodate
the new API. However, the question still remains as to whether I could have
saved myself the pain (maybe this will save some other people having to go
through it) -- is there some reasonable documentation somewhere?
Doc
PS One comment: I found particularly odd the new method of calling some
constructors and then having to check the value returned in a status
indicator that is part of the constructor. This seems very non-intuitive to
a long-time C++ programmer. We used to do this sort of thing before we had
exceptions, but I don't think I've seen new code that does this since
exception-compliant compilers became the norm.
On 8 May 2003 at 14:57, D. R. Evans wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I just went through my once-every few months task of downloading the
> current snmp++ and agent++, and see that a lot of the API that I use has now
> changed.
>
> For example (just one of several), I used to call mpGetLocalEngineID() to
> get the engine ID, but that function no longer exists.
>
> Is there anywhere where the new API is reasonably well documented? Apart
> from a single comment referring to an improved v3MP class, there doesn't
> seem to be anything in the CHANGES document about v3MP. In trying to find a
> replacement to mpGetLocalEngineID() I have tried a few things that seemed
> obvious to me, but none of them worked.
>
> I see that all the consoleExamples now create a v3MP object (this seems to
> be required, whereas before there was no such class). Sinced obviously no
> one else had much trouble moving to the new API -- I didn't see any
> discussions here -- could someone perhaps please enlighten me as to how,
> conceptually, a v3MP fits into the scheme of things?
>
> Doc
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2 -- QDPGP 2.60
> Comment: Key obtainable from servers: ID 0x362912B8
>
> iQA/AwUBPrrEqWnXrLw2KRK4EQJ13QCgo1PfN9BSFnku22+CsnrHZSIgaM0AoNHL
> f+HmDEhdcyQY9Ovj9Pd6YupN
> =rlpS
> -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60
Comment: Key obtainable from servers: ID 0x362912B8
iQA/AwUBPrvPnWnXrLw2KRK4EQKhXQCg2JFPjjrQPsb1XsY4rVglgUN99eYAoKL3
tT3OvPQ/mKdyqaZVKdZqq8gj
=xo3t
-----END PGP SIGNATURE-----
More information about the AGENTPP
mailing list