Network Block Device 2.9.20
Data Fields

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.
int socket_family
 family of the socket
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
gchar * servename
 name of the export as selected by nbd-client
int max_connections
 maximum number of opened connections

Detailed Description

Variables associated with a server.

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


Field Documentation

filename of the authorization file

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

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

uint8_t SERVER::cidrlen

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

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

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

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

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

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

(unprocessed) filename of the file we're exporting

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

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

flags associated with this exported file

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

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

The IP address we're listening on.

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

Referenced by append_serve(), cmdline(), dump_section(), dup_serve(), parse_cfile(), remove_server(), and setup_serve().

maximum number of opened connections

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

Referenced by cmdline(), dup_serve(), parse_cfile(), and serveloop().

unsigned int SERVER::port

port we're exporting this file at

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

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

command that will be ran after the client disconnects

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

Referenced by dup_serve(), parse_cfile(), remove_server(), and serveconnection().

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

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

Referenced by dup_serve(), parse_cfile(), remove_server(), and serveconnection().

name of the export as selected by nbd-client

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

Referenced by dup_serve(), negotiate(), parse_cfile(), and setup_serve().

The socket of this server.

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

Referenced by dup_serve(), serveloop(), and setup_serve().

family of the socket

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

Referenced by append_serve(), dup_serve(), main(), parse_cfile(), and setup_serve().

The style of virtualization, if any.

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

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


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