[En-Nut-Discussion] How to get client's IP address in http server application?

Norio Onda n.onda at kansai-center.ac.jp
Tue Dec 3 01:15:07 CET 2002


Hello, Harald.

> Oops! I've been programming in C so long and I passed
> this error too often.
> 
> The problem is not specific to Nut/OS and would also
> occur on any other OS. inet_ntoa uses a static buffer
> for storing the result. If you call a function with
> two parameters using the return value of inet_ntoa,
> then the second one overrides the first result.
It was understood.
I tried your advice and it worked properly.
The problem of the description of C is difficult.

Thank you for your advice.

-----------------------------
Norio Onda
n.onda at kansai-center.ac.jp



More information about the En-Nut-Discussion mailing list