So I've got a SCREEN_HANDLER_NETWORK up and running, which calls a C function every time data is written to a socket. I'm stuck on the next step, though - how do I attach scriptlinks (or, indeed, any sort of python callback) to this? Even the simplest possible thing I could think of (BPY_txt_do_python_Text( net_script );) didn't work. martin