Next revision | Previous revisionLast revisionBoth sides next revision |
config:sockopts.ini [2020/04/17 20:52] – created digital man | config:sockopts.ini [2022/03/14 19:57] – [See Also] tags Andre |
---|
====== sockopts.ini ====== | ====== Socket Options ====== |
| |
This [[:config:ini files|.ini file]] allows global control over the [[https://linux.die.net/man/3/setsockopt|socket options]] that are applied when Synchronet creates [[wp>network sockets]]. | The ''[[dir:ctrl]]/sockopts.ini'' [[:config:ini files|.ini file]] allows global control over the [[https://linux.die.net/man/3/setsockopt|socket options]] that are applied when Synchronet creates [[wp>network sockets]]. |
| |
The //root// section contains options that are applied to //all// opened sockets. | * The //root// section contains options that are applied to //all// opened sockets. |
| |
The ''[tcp]'' section contains options that are applied to only opened TCP (so-called ''STREAM'') sockets. | * The ''[tcp]'' section contains options that are applied //only// to opened TCP (so-called ''STREAM'') sockets. |
| |
The ''[udp]'' section contains options that are applied to only opened UDP (so-called ''DATAGRAM'') sockets. | * The ''[udp]'' section contains options that are applied //only// to opened UDP (so-called ''DATAGRAM'') sockets. |
| |
The ''[unix]'' section contains options that are applied to only opened //Unix Domain// sockets. | * The ''[unix]'' section contains options that are applied //only// to opened //Unix Domain// sockets. |
| |
Other sections may be defined with one or more //protocol// names (separated by ''|'') as the section name and for these sections, the socket options contained within are only applied to opened sockets for the specified protocol(s). | * Other sections may be defined with one or more //protocol// names (separated by ''|'') as the section name and for these sections, the socket options contained within are //only// applied to opened sockets for the specified protocol(s). |
| |
===== Options ===== | ===== Options ===== |
Most of the options should not be changed by the sysop without very a detailed understanding of the effects. That said, here's the list of supported options (many are OS/Network stack dependent): | Most of the options should not be changed by the sysop without a detailed understanding of the effects. That said, here's the list of supported options (many are OS/Network stack dependent): |
| |
^ Option ^ | ^ Option ^ |
| ''REUSEADDR'' | | | ''REUSEADDR'' | |
| ''REUSEPORT'' | | | ''REUSEPORT'' | |
| | ''EXCLUSIVEADDRUSE'' | |
| ''KEEPALIVE'' | | | ''KEEPALIVE'' | |
| ''DONTROUTE'' | | | ''DONTROUTE'' | |
| |
===== See Also ===== | ===== See Also ===== |
* [[:config:|config index]] | * [[:config:|Configuration]] |
* [[https://linux.die.net/man/3/setsockopt|Linux socket interface]] | * [[https://linux.die.net/man/3/setsockopt|Linux socket interface]] |
* [[https://docs.microsoft.com/en-us/windows/win32/winsock/socket-options|Windows Socket Options]] | * [[https://docs.microsoft.com/en-us/windows/win32/winsock/socket-options|Windows Socket Options]] |
* [[https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options|Windows SOL_SOCKET Socket Options]] | * [[https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options|Windows SOL_SOCKET Socket Options]] |
| |
{{tag>}} | |
| {{tag>configuration general_config ini}} |
| |