[Osip] Modifying host parameter of a URI
Tal Cohen
talc10 at hotmail.com
Sun Jan 20 09:49:41 CET 2008
Hi,
I would like to change the host of a given URI to a new one, but I don't know if this is the right way it should be done. For example:
osip_record_route_t * temp_record_route = NULL ;
.
.
.
// Let's assume that temp_record_route is pointing to a record_route list element...
// Free the current host value:
free (temp_record_route->url->host) ; // ***** ????
// Allocate memory for the new host:
temp_record_route->url->host = (char *) malloc (16) ; // ****** ???
strcpy (temp_record_route->url->host, "111.222.111.222") ; // ****** ???
Am I implementing it right? is there a better way to free / allocate / set host values in osip?
Thanks,
Tal
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx
More information about the Osip
mailing list