spacerat #1 Perhaps you should use socket streams. Just use CreateSocketStream(Socket), then read and write from it as you would a normal stream (Socketstream.readline() etc)