fixed linux string and tcpip socket implementation