CLIENT Struct Reference


Data Fields

off_t exportsize
 size of the file we're exporting
char * clientname
 peer
char * exportname
 (processed) filename of the file we're exporting
GArray * export
 array of FILE_INFO of exported files; array size is always 1 unless we're doing the multiple file option
int net
 The actual client socket.
SERVERserver
 The server this client is getting data from.
char * difffilename
 filename of the copy-on-write file, if any
int difffile
 filedescriptor of copyonwrite file.
u32 difffilelen
 number of pages in difffile
u32 * difmap
 see comment on the global difmap for this one

Detailed Description

Definition at line 192 of file nbd-server.c.


Field Documentation

off_t CLIENT::exportsize

size of the file we're exporting

Definition at line 193 of file nbd-server.c.

Referenced by copyonwrite_prepare(), main(), mainloop(), negotiate(), serveloop(), and setupexport().

char* CLIENT::clientname

peer

Definition at line 194 of file nbd-server.c.

Referenced by authorized_client(), copyonwrite_prepare(), and set_peername().

char* CLIENT::exportname

(processed) filename of the file we're exporting

Definition at line 195 of file nbd-server.c.

Referenced by copyonwrite_prepare(), set_peername(), and setupexport().

GArray* CLIENT::export

array of FILE_INFO of exported files; array size is always 1 unless we're doing the multiple file option

Definition at line 196 of file nbd-server.c.

Referenced by rawexpread(), rawexpwrite(), and setupexport().

int CLIENT::net

The actual client socket.

Definition at line 199 of file nbd-server.c.

Referenced by main(), mainloop(), negotiate(), serveconnection(), and serveloop().

SERVER* CLIENT::server

The server this client is getting data from.

Definition at line 200 of file nbd-server.c.

Referenced by authorized_client(), expread(), expwrite(), main(), mainloop(), serveconnection(), serveloop(), set_peername(), and setupexport().

char* CLIENT::difffilename

filename of the copy-on-write file, if any

Definition at line 201 of file nbd-server.c.

Referenced by copyonwrite_prepare(), and mainloop().

int CLIENT::difffile

filedescriptor of copyonwrite file.

Todo:
shouldn't this be an array too? (cfr export) Or make -m and -c mutually exclusive

Definition at line 202 of file nbd-server.c.

Referenced by copyonwrite_prepare(), expread(), expwrite(), and mainloop().

u32 CLIENT::difffilelen

number of pages in difffile

Definition at line 205 of file nbd-server.c.

Referenced by expwrite().

u32* CLIENT::difmap

see comment on the global difmap for this one

Definition at line 206 of file nbd-server.c.

Referenced by copyonwrite_prepare(), expread(), expwrite(), and mainloop().


The documentation for this struct was generated from the following file:
Generated on Fri Sep 21 19:49:46 2007 for Network Block Device by  doxygen 1.5.3