implementing socket server first iteration complete