udp_client.py

"""Send a UDP package to a socket.
   by stephan)
"""
from slut import *
from slut.net import UdpClient

class Atlantis(World):
    def onSetup(self):
        self.name = "RJ45 Plugs Are Awesome"
        self.destination = UdpClient('localhost', 4114)
        self.destination.write('blah')

    def onDrawOrtho(self):
        circle(200, 200, 100)


atlantis = Atlantis()
atlantis.run()
Initiated by Stephan Hechenberger
Thanks to CADRE's 103