Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources

This commit is contained in:
ariel- committed 2018-03-28 04:41:59 -03:00
1 parent 7fff6c424f
commit 5ff847159c
1243 files changed
+29780 -36517

No files matched your search

@@ -16,16 +16,16 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <memory>
#include <boost/asio/write.hpp>
#include <boost/asio/read_until.hpp>
#include <boost/array.hpp>
#include "RASession.h"
#include "AccountMgr.h"
#include "Log.h"
#include "DatabaseEnv.h"
#include "World.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "Util.h"
#include "World.h"
#include <boost/asio/buffer.hpp>
#include <boost/asio/read_until.hpp>
#include <memory>
using boost::asio::ip::tcp;
@@ -39,7 +39,7 @@ void RASession::Start()
if (_socket.available() > 0)
{
// Handle subnegotiation
boost::array<char, 1024> buf;
char buf[1024] = { };
_socket.read_some(boost::asio::buffer(buf));
// Send the end-of-negotiation packet
@@ -88,7 +88,7 @@ void RASession::Start()
_socket.close();
}
int RASession::Send(const char* data)
int RASession::Send(char const* data)
{
std::ostream os(&_writeBuffer);
os << data;
@@ -202,7 +202,7 @@ bool RASession::ProcessCommand(std::string& command)
return false;
}
void RASession::CommandPrint(void* callbackArg, const char* text)
void RASession::CommandPrint(void* callbackArg, char const* text)
{
if (!text || !*text)
return;