CernVM-FS
2.12.0
|
#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"
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 struct json_value JSON |
This file is part of the CernVM File System.
Definition at line 19 of file helper_util.cc.
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().
void ParseHandshakeInit | ( | const string & | msg | ) |
Definition at line 41 of file helper_util.cc.
Referenced by main().
void ParseRequest | ( | const string & | msg | ) |
Definition at line 68 of file helper_util.cc.
Referenced by main().
|
static |
Get bytes from stdin.
Definition at line 94 of file helper_util.cc.
Referenced by ReadMsg().
string ReadMsg | ( | ) |
Reads a complete message from the cvmfs client.
Definition at line 106 of file helper_util.cc.
Referenced by main().
|
static |
Send bytes to stdout.
Definition at line 123 of file helper_util.cc.
Referenced by WriteMsg().
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().