SERVER Struct Reference

Variables associated with a server. More...


Data Fields

gchar * exportname
 (unprocessed) filename of the file we're exporting
off_t expected_size
 size of the exported file as it was told to us through configuration
gchar * listenaddr
 The IP address we're listening on.
unsigned int port
 port we're exporting this file at
char * authname
 filename of the authorization file
int flags
 flags associated with this exported file
unsigned int timeout
 how long a connection may be idle (0=forever)
int socket
 The socket of this server.
VIRT_STYLE virtstyle
 The style of virtualization, if any.
uint8_t cidrlen
 The length of the mask when we use CIDR-style virtualization.
gchar * prerun
 command to be ran after connecting a client, but before starting to serve
gchar * postrun
 command that will be ran after the client disconnects


Detailed Description

Variables associated with a server.

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


Field Documentation

(unprocessed) filename of the file we're exporting

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

Referenced by cmdline(), dump_section(), parse_cfile(), remove_server(), serve_err(), and set_peername().

size of the exported file as it was told to us through configuration

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

Referenced by cmdline(), dump_section(), parse_cfile(), and setupexport().

The IP address we're listening on.

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

Referenced by cmdline(), dump_section(), parse_cfile(), and setup_serve().

unsigned int SERVER::port

port we're exporting this file at

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

Referenced by cmdline(), daemonize(), dump_section(), main(), parse_cfile(), serve_err(), and setup_serve().

filename of the authorization file

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

Referenced by authorized_client(), cmdline(), dump_section(), parse_cfile(), and remove_server().

flags associated with this exported file

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

Referenced by cmdline(), dump_section(), expread(), expwrite(), mainloop(), negotiate(), parse_cfile(), serveconnection(), setup_serve(), and setupexport().

unsigned int SERVER::timeout

how long a connection may be idle (0=forever)

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

Referenced by cmdline(), dump_section(), mainloop(), and parse_cfile().

The socket of this server.

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

Referenced by serveloop(), and setup_serve().

The style of virtualization, if any.

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

Referenced by cmdline(), parse_cfile(), and set_peername().

uint8_t SERVER::cidrlen

The length of the mask when we use CIDR-style virtualization.

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

Referenced by parse_cfile(), and set_peername().

command to be ran after connecting a client, but before starting to serve

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

Referenced by parse_cfile(), and serveconnection().

command that will be ran after the client disconnects

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

Referenced by parse_cfile(), and serveconnection().


The documentation for this struct was generated from the following file:

Generated on Wed Dec 3 06:18:34 2008 for Network Block Device by  doxygen 1.5.6