XSocket API  2.0
XIA Socket Library
Functions
Xgethostname.c File Reference

Xgethostname() - get XIA host name. More...

#include "Xsocket.h"

Functions

int Xgethostname (char *name, size_t len)
 get the XIA host name More...
 

Function Documentation

int Xgethostname ( char *  name,
size_t  len 
)
  • Returns the XIA host name in a null-terminated string.

    Parameters
    namethe destination for the host name. On exit name contains a null terminated string. It will be truncated if there is not enough room.
    lenthe length of name
    Returns
    0 on success
    -1 on failure with errno is set appropriately.