summaryrefslogtreecommitdiff
path: root/pjlib/src/pj
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-03-22 11:48:33 +0000
committerBenny Prijono <bennylp@teluu.com>2006-03-22 11:48:33 +0000
commitac843019cc56478c4423e0181e2ec1452d84e75b (patch)
treea51552315240cb84c53b008e7d4cf6acc663ca29 /pjlib/src/pj
parent1ac65f3b18e59cd2206dfb8c237ca1007e1d873e (diff)
Added pj_inet_addr2()
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@348 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj')
-rw-r--r--pjlib/src/pj/sock_bsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c
index 09b362ad..e207eeaa 100644
--- a/pjlib/src/pj/sock_bsd.c
+++ b/pjlib/src/pj/sock_bsd.c
@@ -185,6 +185,15 @@ PJ_DEF(pj_in_addr) pj_inet_addr(const pj_str_t *cp)
}
/*
+ * Convert address string with numbers and dots to binary IP address.
+ */
+PJ_DEF(pj_in_addr) pj_inet_addr2(const char *cp)
+{
+ pj_str_t str = pj_str((char*)cp);
+ return pj_inet_addr(&str);
+}
+
+/*
* Set the IP address of an IP socket address from string address,
* with resolving the host if necessary. The string address may be in a
* standard numbers and dots notation or may be a hostname. If hostname