[snmp] Re: Bind to a specific port
Birgit Arkesteijn
birgit at westhawk.co.uk
Tue May 27 18:13:03 BST 2008
Hi Josh,
No, there isn't.
I have to read up on DatagramSocket and DatagramPacket (used by our
StandardSocket), but a quick glance doesn't tell me how to specify the
local port on the fly.
As far as I can tell, you can give the local port to listen *on* (i.e.
all incoming packets that are send to port 161), but as far as I can
tell, not the local port where to send *from*.
Cheers, Birgit
On 25/05/08 05:03, Josh Bers wrote:
> I am attempting to create an agent, however, when I send response to a
> manager the stack uses a different port (local) on which to send
> responses from, e.g., if I am listening on port 1162 for requests,
> responses go out on 1190 (or other random port). Is there a way to tell
> the stack to use a specific local port when sending response pdu’s?
>
>
>
> Thanks,
>
>
>
> Josh
>
>
>
> 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