[Devel] rewritehostport
Taras Bendik
taras at ultra.com.mk
Thu Oct 6 19:06:29 CEST 2005
I am trying to use rewritehostport inside a custom module.
So I use some thing like this :
struct action act;
act_type = SET_HOST_T;
memset(&act, 0, sizeof(act));
act.p1_type = STRING_ST;
act.p1.string = _host;
act.type = SET_HOST_T;
if (do_action(&act, _msg)<0)
{
LOG(L_ERR,"ERROR:change_host_port: SET_XXXX_T action
failed\n");
return -1;
}
return 1;
And it's work ok, however, I there is any other preffered way? Or somu
ready to use functions?
Or I should stick to the this one?
Regards
Taras
More information about the Devel
mailing list