CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
helper_util.cc File Reference
#include "helper_util.h"
#include <alloca.h>
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "authz/helper_log.h"
#include "json.h"
Include dependency graph for helper_util.cc:

Go to the source code of this file.

Typedefs

typedef struct json_value JSON
 

Functions

void CheckCallContext ()
 
void ParseHandshakeInit (const string &msg)
 
void ParseRequest (const string &msg)
 
static void Read (void *buf, size_t nbyte)
 
string ReadMsg ()
 
static void Write (const void *buf, size_t nbyte)
 
void WriteMsg (const string &msg)
 

Typedef Documentation

typedef struct json_value JSON

This file is part of the CernVM File System.

Definition at line 19 of file helper_util.cc.

Function Documentation

void CheckCallContext ( )

Helper binaries are supposed to be called from the cvmfs client, not stand-alone.

Definition at line 32 of file helper_util.cc.

Referenced by main().

Here is the caller graph for this function:

void ParseHandshakeInit ( const string &  msg)

Definition at line 41 of file helper_util.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void ParseRequest ( const string &  msg)

Definition at line 68 of file helper_util.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void Read ( void *  buf,
size_t  nbyte 
)
static

Get bytes from stdin.

Definition at line 94 of file helper_util.cc.

Referenced by ReadMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

string ReadMsg ( )

Reads a complete message from the cvmfs client.

Definition at line 106 of file helper_util.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void Write ( const void *  buf,
size_t  nbyte 
)
static

Send bytes to stdout.

Definition at line 123 of file helper_util.cc.

Referenced by WriteMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

void WriteMsg ( const string &  msg)

Sends a (JSON formatted) message back to the cvmfs client.

Definition at line 135 of file helper_util.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: