background thread for socket listener and call back test