Network Block Device @PACKAGE_VERSION@
Data Fields

SERVER Struct Reference

Variables associated with a server. More...

#include <nbdsrv.h>

Data Fields

gchar * exportname
 (unprocessed) filename of the file we're exporting
uint64_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
gchar * transactionlog
 filename for transaction log

Detailed Description

Variables associated with a server.

Definition at line 29 of file nbdsrv.h.


Field Documentation

filename of the authorization file

Definition at line 35 of file nbdsrv.h.

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

uint8_t SERVER::cidrlen

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

Definition at line 40 of file nbdsrv.h.

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 31 of file nbdsrv.h.

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

(unprocessed) filename of the file we're exporting

Definition at line 30 of file nbdsrv.h.

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

flags associated with this exported file

Definition at line 36 of file nbdsrv.h.

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

The IP address we're listening on.

Definition at line 33 of file nbdsrv.h.

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

maximum number of opened connections

Definition at line 47 of file nbdsrv.h.

Referenced by cmdline(), dup_serve(), handle_modern_connection(), handle_oldstyle_connection(), and parse_cfile().

unsigned int SERVER::port

port we're exporting this file at

Definition at line 34 of file nbdsrv.h.

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

command that will be ran after the client disconnects

Definition at line 44 of file nbdsrv.h.

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

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

Definition at line 42 of file nbdsrv.h.

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

name of the export as selected by nbd-client

Definition at line 46 of file nbdsrv.h.

Referenced by append_new_servers(), dup_serve(), get_index_by_servename(), handle_export_name(), handle_list(), parse_cfile(), serveloop(), and setup_serve().

The socket of this server.

Definition at line 37 of file nbdsrv.h.

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

family of the socket

Definition at line 38 of file nbdsrv.h.

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

filename for transaction log

Definition at line 48 of file nbdsrv.h.

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

The style of virtualization, if any.

Definition at line 39 of file nbdsrv.h.

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


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