Well I remember writing one a long time ago but I forgot how I looped to wait for a connection.... any ideas on how to do it?