mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-11 14:41:27 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -751,7 +751,7 @@ void AuthSession::RealmListCallback(PreparedQueryResult result)
|
||||
// Circle through realms in the RealmList and construct the return packet (including # of user characters in each realm)
|
||||
ByteBuffer pkt;
|
||||
|
||||
size_t RealmListSize = 0;
|
||||
std::size_t RealmListSize = 0;
|
||||
for (auto const& [realmHandle, realm] : sRealmList->GetRealms())
|
||||
{
|
||||
// don't work with realms which not compatible with the client
|
||||
|
||||
@@ -113,7 +113,7 @@ private:
|
||||
struct AuthHandler
|
||||
{
|
||||
AuthStatus status;
|
||||
size_t packetSize;
|
||||
std::size_t packetSize;
|
||||
bool (AuthSession::* handler)();
|
||||
};
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Acore::Impl::Readline
|
||||
static std::vector<std::string> vec;
|
||||
char* cli_unpack_vector(char const*, int state)
|
||||
{
|
||||
static size_t i=0;
|
||||
static std::size_t i=0;
|
||||
if (!state)
|
||||
i = 0;
|
||||
if (i < vec.size())
|
||||
|
||||
@@ -94,7 +94,7 @@ int RASession::Send(std::string_view data)
|
||||
{
|
||||
std::ostream os(&_writeBuffer);
|
||||
os << data;
|
||||
size_t written = _socket.send(_writeBuffer.data());
|
||||
std::size_t written = _socket.send(_writeBuffer.data());
|
||||
_writeBuffer.consume(written);
|
||||
return written;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ int RASession::Send(std::string_view data)
|
||||
std::string RASession::ReadString()
|
||||
{
|
||||
boost::system::error_code error;
|
||||
size_t read = boost::asio::read_until(_socket, _readBuffer, "\r\n", error);
|
||||
std::size_t read = boost::asio::read_until(_socket, _readBuffer, "\r\n", error);
|
||||
if (!read)
|
||||
{
|
||||
_socket.close();
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
using boost::asio::ip::tcp;
|
||||
|
||||
const size_t bufferSize = 4096;
|
||||
const std::size_t bufferSize = 4096;
|
||||
|
||||
class RASession : public std::enable_shared_from_this<RASession>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user