#include <ArServerInfoStrings.h>
There are different ways ways you can add a string (they all are the same way internally). The raw way is addString which takes a functor with a buffer and a buffer len, the functor then has to fill in the string when called. The other ways are set up for convenience and are wrappers in this class around the addString, the other ways are addStringInt, addStringDouble, addStringBool, these all take a functor that returns the type and a format string (in addition to the name and maxLen again).
Definition at line 46 of file ArServerInfoStrings.h.
|
Constructor.
Definition at line 30 of file ArServerInfoStrings.cpp. References ArServerBase::addData(), myMaxMaxLength, myNetGetStringsCB, myNetGetStringsInfoCB, and myServer. |
|
Destructor.
Definition at line 55 of file ArServerInfoStrings.cpp. |
|
Adds a string to the list in the raw format.
Definition at line 122 of file ArServerInfoStrings.cpp. References ArServerBase::broadcastPacketTcp(), buildStringsInfoPacket(), ArMutex::lock(), myMaxMaxLength, myServer, myStringInfoPacket, myStrings, myStringsMutex, and ArMutex::unlock(). |
|
Definition at line 60 of file ArServerInfoStrings.cpp. References ArNetPacket::empty(), ArStringInfoHolder::getMaxLength(), ArStringInfoHolder::getName(), ArMutex::lock(), myStringInfoPacket, myStrings, myStringsMutex, ArBasePacket::strToBuf(), ArBasePacket::uByte2ToBuf(), and ArMutex::unlock(). Referenced by addString(), and netGetStringsInfo(). |
|
Definition at line 79 of file ArServerInfoStrings.cpp. References ArNetPacket::empty(), ArStringInfoHolder::getFunctor(), ArStringInfoHolder::getMaxLength(), ArFunctor2< P1, P2 >::invoke(), ArMutex::lock(), ArTime::mSecSince(), myLastStringPacketBuild, myMaxMaxLength, myStringPacket, myStrings, myStringsMutex, ArBasePacket::strToBuf(), and ArMutex::unlock(). Referenced by netGetStrings(). |
|
Gets the functor for adding a string (for ArStringInfoGroup).
Definition at line 65 of file ArServerInfoStrings.h. References myAddStringFunctor. Referenced by main(). |
|
Gets the strings.
Definition at line 114 of file ArServerInfoStrings.cpp. References buildStringsPacket(), client, myStringPacket, and ArClientBase::sendPacketTcp(). |
|
Gets the information about the strings being sent.
Definition at line 107 of file ArServerInfoStrings.cpp. References buildStringsInfoPacket(), client, myStringInfoPacket, and ArClientBase::sendPacketTcp(). |
|
Definition at line 80 of file ArServerInfoStrings.h. Referenced by getAddStringFunctor(). |
|
Definition at line 74 of file ArServerInfoStrings.h. Referenced by buildStringsPacket(). |
|
Definition at line 77 of file ArServerInfoStrings.h. Referenced by addString(), ArServerInfoStrings(), and buildStringsPacket(). |
|
Definition at line 85 of file ArServerInfoStrings.h. Referenced by ArServerInfoStrings(). |
|
Definition at line 83 of file ArServerInfoStrings.h. Referenced by ArServerInfoStrings(). |
|
Definition at line 68 of file ArServerInfoStrings.h. Referenced by addString(), and ArServerInfoStrings(). |
|
Definition at line 71 of file ArServerInfoStrings.h. Referenced by addString(), buildStringsInfoPacket(), and netGetStringsInfo(). |
|
Definition at line 73 of file ArServerInfoStrings.h. Referenced by buildStringsPacket(), and netGetStrings(). |
|
Definition at line 76 of file ArServerInfoStrings.h. Referenced by addString(), buildStringsInfoPacket(), and buildStringsPacket(). |
|
Definition at line 78 of file ArServerInfoStrings.h. Referenced by addString(), buildStringsInfoPacket(), and buildStringsPacket(). |