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
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

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().

uint8_t SERVER::cidrlen

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

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

Referenced by parse_cfile(), 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().

(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().

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().

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().

command that will be ran after the client disconnects

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

Referenced by parse_cfile(), and serveconnection().

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

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

Referenced by parse_cfile(), and serveconnection().

The socket of this server.

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

Referenced by serveloop(), and setup_serve().

The style of virtualization, if any.

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

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


The documentation for this struct was generated from the following file:
Generated on Mon Jul 5 13:04:48 2010 for Network Block Device by  doxygen 1.6.3