Network Block Device  @PACKAGE_VERSION@
Functions | Variables
cliserv.c File Reference
#include <config.h>
#include <cliserv.h>
#include <stdio.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>

Go to the source code of this file.

Functions

void setmysockopt (int sock)
 
void err_nonfatal (const char *s)
 
void err (const char *s)
 
void logging (const char *name)
 
u64 ntohll (u64 a)
 

Variables

const u64 cliserv_magic = 0x00420281861253LL
 
const u64 opts_magic = 0x49484156454F5054LL
 
const u64 rep_magic = 0x3e889045565a9LL
 

Function Documentation

void err ( const char *  s)
void err_nonfatal ( const char *  s)

Definition at line 30 of file cliserv.c.

Referenced by err(), handle_list(), negotiate(), opennet(), openunix(), and socket_accept().

void logging ( const char *  name)

Definition at line 61 of file cliserv.c.

References ntohll().

Referenced by main().

u64 ntohll ( u64  a)

Definition at line 74 of file cliserv.c.

Referenced by ask_list(), logging(), main(), mainloop(), and negotiate().

void setmysockopt ( int  sock)

Definition at line 12 of file cliserv.c.

References INFO.

Referenced by opennet(), and serveconnection().

Variable Documentation

const u64 cliserv_magic = 0x00420281861253LL

Definition at line 8 of file cliserv.c.

Referenced by negotiate().

const u64 opts_magic = 0x49484156454F5054LL

Definition at line 9 of file cliserv.c.

Referenced by ask_list(), and negotiate().

const u64 rep_magic = 0x3e889045565a9LL

Definition at line 10 of file cliserv.c.

Referenced by ask_list().