#include <SocketUtilities.h>
Static Public Member Functions | |
static char * | ltoa (long val, char *buf, int base) |
static string | create_temp_name () |
string SocketUtilities::create_temp_name | ( | ) | [static] |
Create a uniq name which is used to create a unique name for a Unix socket in a client . or for creating a temporary file.
References ltoa().
Referenced by UnixSocket::connect().
char * SocketUtilities::ltoa | ( | long | val, | |
char * | buf, | |||
int | base | |||
) | [static] |
Routine to convert a long int to the specified numeric base, from 2 to 36. You must get sure the buffer val is big enough to hold all the digits for val or this routine may be UNSAFE.
val | the value to be converted. | |
buf | A buffer where to place the conversion. | |
base | base number system to use |
Referenced by create_temp_name().