#!/usr/bin/env python

from __future__ import print_function

def main():
	print("Running main loop")

if __name__ == "__main__":
	print("Hello Client!")
	main()
	print("Goodbye Client!")

@@ -16,16 +16,49 @@
 python%0A%0A
+import signal%0Aimport pyuv as uv%0A%0A
 from __f
@@ -96,43 +96,415 @@
 def 
-main():%0A%09print(%22Running main loop%22)
+on_read(handle, ip_port, flags, data, error):%0A%09if data is not None:%0A%09%09handle.send(ip_port, data)%0A%0Adef signal_cb():%0A%09pass%0A%0A%0Adef main():%0A%09print(%22Running main loop%22)%0A%09%0A%09loop = uv.loop.default_loop()%0A%09responder = pyuv.UDP(loop)%0A%09responder.bind((%220.0.0.0%22, 1234))%0A%09responder.start_recv(on_read)%0A%09%0A%09signal_h = pyuv.Signal(loop)%0A%09signal_h.start(signal_cb, signal.SIGINT)%0A%09%0A%09loop.run()%0A%09%0A%09print(%22Ending main loop%22)%0A
 %0A%0Aif

Update main.py