Alaska Software Inc. - Client IP.
Username: Password:
AuthorTopic: Client IP.
J.L. CurcielClient IP.
on Mon, 05 May 2003 13:03:42 +0200
> Dear friends:
> I'm newbie in asinet and want to get the IP of a client in xxx.xxx.xxx.xxx
> format. I used the socketgetpeername(nsocket) to get it but I got an array
> of 3 positions that wasn't what I expected for.
> Any help?
>
> Thanks.
>
>
Evgeny Bogolyubov Re: Client IP.
on Wed, 07 May 2003 22:43:26 +0200
Hi,

Apply SocketInetNtoA() on the first element of that array and you'll get an 
IP address.

Regards,
Evgeny.


"J.L. Curciel" <news_alaska@jacsys.com> wrote in
news:3eb64443@asgcom.alaska-software.com: 

>> Dear friends:
>> I'm newbie in asinet and want to get the IP of a client in
>> xxx.xxx.xxx.xxx format. I used the socketgetpeername(nsocket) to get
>> it but I got an array of 3 positions that wasn't what I expected for.
>> Any help?
>>
>> Thanks.
>>
>>
> 
> 
>