Fixed $port is not initialized correctly in send() method.