OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
SocketUtilities Class Reference

#include <SocketUtilities.h>

Collaboration diagram for SocketUtilities:
Collaboration graph

Static Public Member Functions

static string create_temp_name ()
 Create a uniq name which is used to create a unique name for a Unix socket in a client . More...
 
static char * ltoa (long val, char *buf, int base)
 Routine to convert a long int to the specified numeric base, from 2 to 36. More...
 

Detailed Description

Definition at line 40 of file SocketUtilities.h.

Member Function Documentation

◆ 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.

Returns
uniq name

Definition at line 67 of file SocketUtilities.cc.

References ltoa().

Referenced by UnixSocket::connect().

Here is the call graph for this function:

◆ ltoa()

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.

Parameters
valthe value to be converted.
bufA buffer where to place the conversion.
basebase number system to use
Returns
Pointer to the buffer buf.

Definition at line 43 of file SocketUtilities.cc.

Referenced by create_temp_name().


The documentation for this class was generated from the following files: