Public Member Functions | |
PROUD_API | CStartServerParameter () |
Parameters for NetServer startup.
PROUD_API Proud::CStartServerParameter::CStartServerParameter | ( | ) |
Constructor method
uint32_t Proud::CStartServerParameter::m_clientEmergencyLogMaxLineCount |
Server will select method of issuing HostID
This is number of emergency log line for client
bool Proud::CStartServerParameter::m_enableIocp |
FOR TEST USE! DO NOT MODIFY THIS
CFastArray<int> Proud::CStartServerParameter::m_failedBindPorts |
When you set m_ignoreFailedBindPort to true, port list of failed bind will be there.
HostIDGenerationPolicy Proud::CStartServerParameter::m_hostIDGenerationPolicy |
It is an option for HostID reuse function.
Default value is HostIDGenerationPolicy_Recycle.
bool Proud::CStartServerParameter::m_ignoreFailedBindPort |
When you set this value to true, it bind next port if it has port that already using in m_udpports.
bool Proud::CStartServerParameter::m_simplePacketMode |
Simple network protocol mode.
Default is false. Setting this to true allows dummy client test via packet capture and replication method. However, it will make service vulnerable to hackers, and does not allow UDP networking and direct P2P communication (will be relayed instead.) You should set this to false for live service.
Notice for packet capture and replay test:
CFastArray<int> Proud::CStartServerParameter::m_tcpPorts |
TCP listening port
ServerUdpAssignMode Proud::CStartServerParameter::m_udpAssignMode |
This is the policy of using UDP port.
CFastArray<int> Proud::CStartServerParameter::m_udpPorts |
This is a list of UDP host port When m_udpAssignMode is same as Proud.ServerUdpAssignMode_PerClient, this list will be ignored;
When m_udpAssignMode is same as Proud.ServerUdpAssignMode_Static, this list will work as followings;
bool Proud::CStartServerParameter::m_upnpDetectNatDevice |
This is used to decide wheter to use universal plug and play function for the clients when required.
bool Proud::CStartServerParameter::m_upnpTcpAddPortMapping |
TODO:translate needed.
bool Proud::CStartServerParameter::m_usingOverBlockIcmpEnvironment |
If there exists a strong policy that totally eliminates all types of communications from the host with ICMP packet from server firewalls, then this value must be set as true. However, there could be some cases when Per client UDP asigne mode is used and working well while this value is not set as true, but it is recommended to set this value as false.