syntax fixing for SocketWriter and TCPClient