libs/stream_message/src/service.cxx
// ===========================================================================
// Get the port and IP address.
//
Get the port and IP address.
Get the port and IP address .
bool ServicePort::getPortAndAddr(int &port_param, int &IP_addr, string **diagnostic) const
{
    if (isGood) {
	port_param = port;
	IP_addr = IPAddr;
    }
    if (whyBad == NULL) {
        if (diagnostic != NULL)
	    *diagnostic = NULL;
    }
    else {
        if (diagnostic != NULL)
	   *diagnostic = new string(*whyBad);
    }
    return isGood;
}
bool ServicePort :: getPortAndAddr ( int & port_param , int & IP_addr , string * * diagnostic ) const { if ( isGood ) { port_param = port ; IP_addr = IPAddr ; } if ( whyBad == NULL ) { if ( diagnostic != NULL ) * diagnostic = NULL ; } else { if ( diagnostic != NULL ) * diagnostic = new string ( * whyBad ) ; } return isGood ; }
Get the port and IP address.
Get the port and IP address .