QcNetworkConfig Struct
Settings of the listener of a network game (decisions E-251, E-254, E-872). More...
| Header: | #include <network/QcNetworkConfig.h> |
Public Variables
| QHostAddress | bindAddress |
| QcConnectionLimits | connections |
| quint16 | port |
| QcTlsCredentials | tls |
| QcTcpTransport::Limits | transport |
Detailed Description
Member Variable Documentation
QHostAddress QcNetworkConfig::bindAddress
Any: IPv4 and IPv6 on all interfaces (LAN and internet); LocalHost or LocalHostIPv6 for this computer only.
QcConnectionLimits QcNetworkConfig::connections
The bounds of new and open connections.
quint16 QcNetworkConfig::port
0 picks a free port (tests).
QcTlsCredentials QcNetworkConfig::tls
The certificate and key of the TLS handshake (QcTlsCredentials::loadOrCreate in the data folder); a listener without them does not start.
QcTcpTransport::Limits QcNetworkConfig::transport
Clients send only small messages; a frame beyond this ends their connection. A player's link may be slow (home upload): the goodbye with a Disconnect's reason gets 2.5 s once the system sent it (decision E-904).