mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
Finish line
This commit is contained in:
parent
929955013d
commit
c51de6b7c0
4 changed files with 2 additions and 10 deletions
|
@ -52,10 +52,6 @@ bool Core::Network::SapphireAPI::login( const std::string& username, const std::
|
||||||
pSession->setAccountId( accountId );
|
pSession->setAccountId( accountId );
|
||||||
pSession->setSessionId( sid );
|
pSession->setSessionId( sid );
|
||||||
|
|
||||||
//auto ip2 = boost::asio::ip::address::from_string( request->remote_endpoint_address );
|
|
||||||
|
|
||||||
//pSession->setIP( ip2.to_v4().to_ulong() );
|
|
||||||
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
||||||
for( size_t i = 0; i < 56; i++ )
|
for( size_t i = 0; i < 56; i++ )
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
|
|
||||||
#include "PlayerMinimal.h"
|
#include "PlayerMinimal.h"
|
||||||
|
|
||||||
|
@ -51,4 +50,4 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#define CLIENT_HTTP_HPP
|
#define CLIENT_HTTP_HPP
|
||||||
|
|
||||||
#include <asio.hpp>
|
#include <asio.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
|
||||||
#include <boost/functional/hash.hpp>
|
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define SERVER_HTTP_HPP
|
#define SERVER_HTTP_HPP
|
||||||
|
|
||||||
#include <asio.hpp>
|
#include <asio.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
|
||||||
|
|
||||||
#include <Util/Util.h>
|
#include <Util/Util.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -14,7 +13,7 @@
|
||||||
|
|
||||||
#ifndef CASE_INSENSITIVE_EQUALS_AND_HASH
|
#ifndef CASE_INSENSITIVE_EQUALS_AND_HASH
|
||||||
#define CASE_INSENSITIVE_EQUALS_AND_HASH
|
#define CASE_INSENSITIVE_EQUALS_AND_HASH
|
||||||
//Based on http://www.boost.org/doc/libs/1_60_0/doc/html/unordered/hash_equality.html
|
|
||||||
class case_insensitive_equals {
|
class case_insensitive_equals {
|
||||||
public:
|
public:
|
||||||
bool operator()(const std::string &key1, const std::string &key2) const {
|
bool operator()(const std::string &key1, const std::string &key2) const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue