tftpclient: converting to net sockets