cliserv.h File Reference

#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <stdlib.h>
#include <linux/types.h>
#include <linux/nbd.h>

Go to the source code of this file.

Defines

#define INIT_PASSWD   "NBDMAGIC"
#define INFO(a)   do { } while(0)
#define htonll   ntohll

Functions

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

Variables

u64 cliserv_magic = 0x00420281861253LL


Define Documentation

#define htonll   ntohll

Definition at line 126 of file cliserv.h.

Referenced by negotiate(), and throughput_test().

#define INFO (  )     do { } while(0)

Definition at line 57 of file cliserv.h.

Referenced by setmysockopt().

#define INIT_PASSWD   "NBDMAGIC"

Definition at line 55 of file cliserv.h.

Referenced by negotiate(), and setup_connection().


Function Documentation

void err ( const char *  s  ) 

Definition at line 77 of file cliserv.h.

Referenced by copyonwrite_prepare(), daemonize(), finish_sock(), main(), mainloop(), myseek(), negotiate(), opennet(), parse_cfile(), readit(), serveloop(), set_peername(), setsizes(), setup_connection(), setup_serve(), setupexport(), size_autodetect(), throughput_test(), and writeit().

void logging ( void   ) 

Definition at line 105 of file cliserv.h.

References MY_NAME.

Referenced by main().

u64 ntohll ( u64  a  ) 

Definition at line 118 of file cliserv.h.

Referenced by mainloop(), negotiate(), setup_connection(), and throughput_test().

void setmysockopt ( int  sock  ) 

Definition at line 59 of file cliserv.h.

References INFO.

Referenced by opennet(), serveconnection(), and setup_connection().


Variable Documentation

u64 cliserv_magic = 0x00420281861253LL

Definition at line 54 of file cliserv.h.

Referenced by negotiate(), and setup_connection().


Generated on Fri Sep 21 19:49:46 2007 for Network Block Device by  doxygen 1.5.3