Problem with inet_ntoa
- From: "Barzo@Google" <dbarzo@xxxxxxxxx>
- Date: Thu, 20 Sep 2007 10:33:19 -0000
Hi,
I'm developing an ActiveX DLL in VB6 which use the winsock API.
Now, when I accept a TCP connection from a remote host and call
getsockname and getpeername to get the remote host IP, the
inet_ntoa :
m_strLocalIP = StringFromPointer(inet_ntoa(udtSockAddr.sin_addr))
returns a number (like 65233254) instead a valid IP String.
This problem not occur if I use the class directly in a project
instead inside a DLL Activex.
Someone can help me?
Thanks in advance.
Daniele.
.
- Follow-Ups:
- Re: Problem with inet_ntoa
- From: Arkady Frenkel
- Re: Problem with inet_ntoa
- Prev by Date: Re: BlueTooth socket
- Next by Date: Re: FtpWebRequest to Uload fiel to IBM MainFrame.
- Previous by thread: Re: BlueTooth socket
- Next by thread: Re: Problem with inet_ntoa
- Index(es):