Latest recipes tagged "udp"http://code.activestate.com/recipes/tags/udp/new/2013-10-10T16:26:33-07:00ActiveState Code Recipes Counting TCP\UDP endpoints (Batch) 2013-10-10T16:26:33-07:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578335-counting-tcpudp-endpoints/ <p style="color: grey"> Batch recipe 578335 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/endpoint/">endpoint</a>, <a href="/recipes/tags/tcp/">tcp</a>, <a href="/recipes/tags/udp/">udp</a>). Revision 2. </p> <p>Needs just for statistic, no further.</p> Socket Broadcast Help (Python) 2011-12-04T22:18:13-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577950-socket-broadcast-help/ <p style="color: grey"> Python recipe 577950 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/broadcast/">broadcast</a>, <a href="/recipes/tags/socket/">socket</a>, <a href="/recipes/tags/udp/">udp</a>). Revision 6. </p> <p>The classes in this module are stepping stones for building discoverable services on a network. Server replies are to be handled by the importer.</p> Python Easily Packetize / Slice / Chunk Text (Python) 2011-09-30T05:34:57-07:00__nerohttp://code.activestate.com/recipes/users/4177968/http://code.activestate.com/recipes/577885-python-easily-packetize-slice-chunk-text/ <p style="color: grey"> Python recipe 577885 by <a href="/recipes/users/4177968/">__nero</a> (<a href="/recipes/tags/chunk/">chunk</a>, <a href="/recipes/tags/packetize/">packetize</a>, <a href="/recipes/tags/regex/">regex</a>, <a href="/recipes/tags/split/">split</a>, <a href="/recipes/tags/udp/">udp</a>). </p> <p>I needed to chunk up some text to send over UDP and didn't want to have messy for loops with an if condition for size and then the little bit left over. All that struck me as very messy. I then thought of the re module and came up with a very simple solution to chunk up data.</p> receive UDP broadcasts (Python) 2010-06-30T16:46:16-07:00matt studieyhttp://code.activestate.com/recipes/users/4174312/http://code.activestate.com/recipes/577278-receive-udp-broadcasts/ <p style="color: grey"> Python recipe 577278 by <a href="/recipes/users/4174312/">matt studiey</a> (<a href="/recipes/tags/broadcast/">broadcast</a>, <a href="/recipes/tags/networking/">networking</a>, <a href="/recipes/tags/udp/">udp</a>). </p> <p>simplest implementation I could achieve</p> Parse a DIS PDU (Tcl) 2009-08-29T09:49:16-07:00Frank Bannonhttp://code.activestate.com/recipes/users/4167503/http://code.activestate.com/recipes/576892-parse-a-dis-pdu/ <p style="color: grey"> Tcl recipe 576892 by <a href="/recipes/users/4167503/">Frank Bannon</a> (<a href="/recipes/tags/dis/">dis</a>, <a href="/recipes/tags/pdu/">pdu</a>, <a href="/recipes/tags/udp/">udp</a>). </p> <p>Decodes Distributed Interactive Simulation (DIS) Protocol Data Units (PDUs) from UDP packets. Requires UDP package (<a href="http://tcludp.sourceforge.net%29" rel="nofollow">http://tcludp.sourceforge.net)</a></p> <p>Entity State (1), Fire (2), and Detonation (3) PDUs are decoded.</p> Distributed Interactive Simulation (Tcl) 2012-06-15T00:14:10-07:00Frank Bannonhttp://code.activestate.com/recipes/users/4167503/http://code.activestate.com/recipes/576568-distributed-interactive-simulation/ <p style="color: grey"> Tcl recipe 576568 by <a href="/recipes/users/4167503/">Frank Bannon</a> (<a href="/recipes/tags/dis/">dis</a>, <a href="/recipes/tags/pdu/">pdu</a>, <a href="/recipes/tags/udp/">udp</a>). Revision 2. </p> <p>Decode Distributed Interactive Simulation (DIS) Protocol Data Units (PDUs) captured from UDP packets. PDUs decoded: Entity State, Fire, Detonation, Transmitter, Signal. Captures a packet from UDP, then decodes the data and adds it to a log.</p>