Scott McKellar wrote:
Similar questions apply to two other cases where we look for $HOSTNAME:
1. osrfChatMkAuthKey(), in osrf_chat.c
2. osrfSystemBootstrapClientResc(), in osrf_system.c
Scott McKellar
http://home.swbell.net/mck9/ct/
--- Scott McKellar [EMAIL PROTECTED] wrote:
In
--- Mike Rylander [EMAIL PROTECTED] wrote:
snip -- about using $HOSTNAME vs gethostname()
Is there a need for these to match over time? If so, the environment
may be safer, since the result of gethostname() may change from one
call to the next, no?
Suppose a program needs the host name
In session_connect() we have have the following fragment:
/* the first Jabber connect stanza */
char* our_hostname = getenv(HOSTNAME);
size1 = 150 + strlen( server );
char stanza1[ size1 ];
snprintf( stanza1, sizeof(stanza1),
long message abbreviated here %s %s,