Popular Python recipes tagged "udp"http://code.activestate.com/recipes/langs/python/tags/udp/2011-12-04T22:18:13-08:00ActiveState Code RecipesSocket 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>