cliserv.h File Reference

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

Go to the source code of this file.

Defines

#define INIT_PASSWD   "NBDMAGIC"
#define INFO(a)   do { } while(0)
#define G_GNUC_NORETURN
#define htonll   ntohll
#define NBD_FLAG_HAS_FLAGS   (1 << 0)
#define NBD_FLAG_READ_ONLY   (1 << 1)

Functions

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

Variables

u64 cliserv_magic = 0x00420281861253LL

Define Documentation

#define G_GNUC_NORETURN

Definition at line 86 of file cliserv.h.

#define htonll   ntohll

Definition at line 140 of file cliserv.h.

Referenced by negotiate(), and throughput_test().

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

Definition at line 62 of file cliserv.h.

Referenced by setmysockopt().

#define INIT_PASSWD   "NBDMAGIC"

Definition at line 60 of file cliserv.h.

Referenced by negotiate(), and setup_connection().

#define NBD_FLAG_HAS_FLAGS   (1 << 0)

Definition at line 143 of file cliserv.h.

Referenced by negotiate().

#define NBD_FLAG_READ_ONLY   (1 << 1)

Definition at line 144 of file cliserv.h.

Referenced by negotiate(), and setsizes().


Function Documentation

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

Definition at line 119 of file cliserv.h.

References MY_NAME.

Referenced by main().

u64 ntohll ( u64  a  ) 

Definition at line 132 of file cliserv.h.

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

void setmysockopt ( int  sock  ) 

Definition at line 64 of file cliserv.h.

References INFO.

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


Variable Documentation

u64 cliserv_magic = 0x00420281861253LL

Definition at line 59 of file cliserv.h.

Referenced by negotiate(), and setup_connection().

Generated on Mon Jul 5 13:04:48 2010 for Network Block Device by  doxygen 1.6.3