JayBeams  0.1
Another project to have fun coding.
udp_config_common.cpp
Go to the documentation of this file.
2 
3 namespace jb {
4 namespace itch5 {
5 
7  : debug(
8  desc("debug").help("Set the SO_DEBUG option on the socket. On "
9  "Linux, if the user has the right capabilities, "
10  "this will enable debug messages to syslogd(8)."),
11  this, false)
12  , do_not_route(
13  desc("do-not-route")
14  .help("Set the SO_DONTROUTE option on the socket."),
15  this, false)
16  , linger(
17  desc("linger").help("Set the SO_LINGER option on the socket."
18  " This makes the socket block on shutdown(2) or "
19  "close(2) operations until all queued messages "
20  "have been sent, or to timeout after the value "
21  "set in --linger-seconds."),
22  this, false)
23  , linger_seconds(
24  desc("linger-seconds")
25  .help("Set the timeout value for the SO_LINGER "
26  "option. The default is 0."),
27  this, 0)
28  , reuse_address(
29  desc("reuse-address")
30  .help("Set the SO_REUSEADDR option on the socket."
31  " This makes it possible to bind multiple UDP sockets to "
32  "the same port, for example to receive multicast messages "
33  "in multiple applications."),
34  this, true)
35  , receive_buffer_size(
36  desc("receive-buffer-size")
37  .help("Set the SO_RCVBUF option -- the maximum socket receive "
38  "buffer. By default, or if set to -1, use the system "
39  "defaults."),
40  this, -1)
41  , receive_low_watermark(
42  desc("receive-low-watermark")
43  .help("Set the SO_RCVLOWAT option -- the minimum number of bytes "
44  "in the receive buffer before the application is supposed "
45  "to be notified. By default, or if set to -1, use the "
46  "system defaults."
47  " On Linux consult socket(7) for caveats."),
48  this, -1)
49  , send_buffer_size(
50  desc("send-buffer-size")
51  .help("Set the SO_SNDBUF option -- the maximum socket send "
52  "buffer. By default, or if set to -1, use the system "
53  "defaults."),
54  this, -1)
55  , send_low_watermark(
56  desc("send-low-watermark")
57  .help("Set the SO_SNDLOWAT option -- the minimum number of bytes "
58  "in the send buffer before the socket passes on the data to"
59  " protocol. By default, or if set to -1, use the "
60  "system defaults."
61  " On Linux consult socket(7) for caveats."),
62  this, -1) {
63 }
64 
65 } // namespace itch5
66 } // namespace jb
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7