single non blocking thread for recieving connections and data