[cs631apue] How to identify the SERVER_NAME variable?

Jan Schaumann jschauma at stevens.edu
Fri Dec 4 20:52:58 EST 2015


gcheng2 <gcheng2 at stevens.edu> wrote:
 
> When our server listens all ip addresses on the host, how to know
> which host the client is requesting (for example localhost or
> nemo)?

You can use uname(3) to get the nodename.

-Jan


More information about the cs631apue mailing list