#include <NetOptions.h>
Public Member Functions | |
| int | getNumberRetries () |
| int | getOutstandingPackets () |
| int | getPacketSize () |
| bool | getPacketLogging () |
| bool | writeOptionsToFile () |
| bool | readOptionsFromFile () |
Static Public Member Functions | |
| static NetOptions * | instance () |
Protected Attributes | |
| std::list < OptionEntry * > | options_ |
| OptionEntryBoundedInt | numberRetries_ |
| OptionEntryBoundedInt | outstandingPackets_ |
| OptionEntryBoundedInt | packetSize_ |
| OptionEntryBool | packetLogging_ |
Static Protected Attributes | |
| static NetOptions * | instance_ = 0 |
Private Member Functions | |
| NetOptions () | |
| virtual | ~NetOptions () |
Definition at line 26 of file NetOptions.h.
| NetOptions::NetOptions | ( | ) | [private] |
Definition at line 35 of file NetOptions.cpp.
| NetOptions::~NetOptions | ( | ) | [private, virtual] |
Definition at line 47 of file NetOptions.cpp.
| NetOptions * NetOptions::instance | ( | ) | [static] |
Definition at line 25 of file NetOptions.cpp.
References instance_.
Referenced by NetServerTCP2::NetServerTCP2(), NetServerTCP2Destination::NetServerTCP2Destination(), and NetServerTCP3::NetServerTCP3().
| int NetOptions::getNumberRetries | ( | ) | [inline] |
| int NetOptions::getOutstandingPackets | ( | ) | [inline] |
| int NetOptions::getPacketSize | ( | ) | [inline] |
| bool NetOptions::getPacketLogging | ( | ) | [inline] |
Definition at line 34 of file NetOptions.h.
References packetLogging_.
Referenced by NetServerTCP2Destination::NetServerTCP2Destination().
| bool NetOptions::writeOptionsToFile | ( | ) |
Definition at line 51 of file NetOptions.cpp.
References S3D::getSettingsFile(), options_, and OptionEntryHelper::writeToFile().
Referenced by NetServerTCP2::NetServerTCP2(), and NetServerTCP3::NetServerTCP3().
| bool NetOptions::readOptionsFromFile | ( | ) |
Definition at line 58 of file NetOptions.cpp.
References S3D::getSettingsFile(), options_, and OptionEntryHelper::readFromFile().
Referenced by NetServerTCP2::NetServerTCP2(), and NetServerTCP3::NetServerTCP3().
NetOptions * NetOptions::instance_ = 0 [static, protected] |
std::list<OptionEntry *> NetOptions::options_ [protected] |
Definition at line 41 of file NetOptions.h.
Referenced by readOptionsFromFile(), and writeOptionsToFile().
OptionEntryBoundedInt NetOptions::numberRetries_ [protected] |
OptionEntryBoundedInt NetOptions::outstandingPackets_ [protected] |
OptionEntryBoundedInt NetOptions::packetSize_ [protected] |
OptionEntryBool NetOptions::packetLogging_ [protected] |
1.5.3