Dear All,
in the following code, transport->open() call works fine even if ipAddress is an empty string. Why?

boost::shared_ptr<apache::thrift::transport::TSocket> socket(new apache::thrift::transport::TSocket(ipAddress.c_str(), g_DaemonService_constants.DaemonService_port));
socket->setConnTimeout(connectionTimeout);
transport = boost::make_shared<apache::thrift::transport::TBufferedTransport>(socket); client = boost::make_shared<DaemonServiceClient>(boost::make_shared<apache::thrift::protocol::TBinaryProtocol>(transport));
transport->open();

Kind regards,
Gianni

Reply via email to