Changed way of passing socket/thread information to TCP listener