Main Page | Data Structures | File List | Globals

libppr/gnodename.c File Reference

determine name of this network node More...

#include "before_system.h"
#include <string.h>
#include <sys/utsname.h>
#include <errno.h>
#include "gu.h"
#include "global_defines.h"

Functions

const char * ppr_get_nodename (void)
 determine name of this node


Detailed Description

determine name of this network node


Function Documentation

const char* ppr_get_nodename void   ) 
 

determine name of this node

This function returns the nodename which identifies this PPR node. All jobs coming from this node will be stamped with this name. Other nodes will use this name to send jobs to this node. In the current implementation this is the system name truncated before the first period (if present) and furthur truncated to 16 characters.

Notice that this routine is call frequently. It should determine the node name only the first time it is called. It should save that name and returned the saved name on subsequent calls.


Generated on Fri Feb 20 15:17:52 2004 for PPR Libraries by doxygen 1.3.5