FAQ
I put together a little demo of how to receive UDP multicast messages just
now:

http://code.google.com/p/jra-go/source/browse/cmd/hsrp/routers.go

As a bonus, it also shows how to use enocding/binary.Read in order to
unmarshal a wire format into a structure that Go can use.

If you don't have any routers on your subnet that are talking HSRP, you
won't see anything. You'd need to write something to send out
advertisements on some other port (just in case someone is listening for
HSRP) and then change the port in this demo.

-jeff

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 26, '13 at 12:35p
activeFeb 27, '13 at 2:39p
posts4
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase