finally I made get and put functions working. Compatibile client should be able to reconnect after data transfer, because closing socket is used to send TCP FIN signal (end of file for client). working on replace in progress...
fixed get and put commands. Client must reconnect after transfer (sending TCP FIN (eof) via closing socket)