[Netclass-general] resolve dotted ip address of connect()
Status: Alpha
Brought to you by:
neillm
|
From: HirokazuYoshinaga <yos...@ak...> - 2005-09-26 07:46:52
|
Hi,
Thanks to the NetClass, I can develop an crossplatform application.
It's a wonderful library!
When I use connect() function of the ncSocket class using IP address,
I cannot connect to the server program.
I checked the ncSocket source code, then I found the bug in resolving
dotted ip address.
/* resolve dotted ip address */
if (!ncValidInetAddr(
ncGetInetAddr(m_hostname,&servaddr->sin_addr.s_addr)))
I patched above lines as follows.
/* resolve dotted ip address */
ncGetInetAddr(m_hostname,&servaddr->sin_addr.s_addr);
if (!ncValidInetAddr(servaddr->sin_addr.s_addr))
I can connect to the server program.
Is it a collect patch?
Thanks.
--
Hirokazu Yoshinaga
yos...@ak...
|