<div dir="ltr">It&#39;s Go, but I have a few examples in the &quot;paxos&quot; area of my go-getting github repo:<div><br></div><div>  <a href="https://github.com/ecashin/go-getting/blob/master/paxos/udptest-reciprocal.go">https://github.com/ecashin/go-getting/blob/master/paxos/udptest-reciprocal.go</a></div>
<div><br></div><div>For the Linux half, maybe I&#39;m reading too fast, but would tcpdump (can display payloads) plus netcat (can send and receive arbitrary packets) do the trick?</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 12:55 AM, Alex Carver <span dir="ltr">&lt;<a href="mailto:agcarver+ale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, a networking and a Linux question.<br>
<br>
First, does anyone have a reference (URL or source code) that shows how<br>
to receive UDP broadcast packets from multiple sending devices?  In<br>
other words, if I have two net devices each broadcasting UDP packets, I<br>
want to build a listener that will capture the packets from both devices<br>
(or more as I add devices).<br>
<br>
The Linux half of the question:  is there a quick CLI way of playing<br>
with UDP similar to utilities like tcpconnect?  I want to be able to<br>
examine the payloads before I dive into writing a C program although<br>
maybe writing the C program that just echos the payload is the way to go<br>
to figure out the base network stack.<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>  Ed Cashin &lt;<a href="mailto:ecashin@noserose.net">ecashin@noserose.net</a>&gt;<br>  <a href="http://noserose.net/e/">http://noserose.net/e/</a><br>  <a href="http://www.coraid.com/">http://www.coraid.com/</a>
</div>