91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
34 lines
737 B
C++
34 lines
737 B
C++
#ifndef NL_LAUNCHER_CONNECTION_H
|
|
#define NL_LAUNCHER_CONNECTION_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <nel/net/tcp_sock.h>
|
|
|
|
#include "shard.h"
|
|
|
|
typedef std::vector<CShard> TShardList;
|
|
|
|
class CNelLauncherConnection
|
|
{
|
|
public:
|
|
bool connect();
|
|
bool send(const std::string &url);
|
|
bool receive(std::string &res);
|
|
std::string checkLogin(const std::string &login, const std::string &password, const std::string &clientApp);
|
|
std::string selectShard(uint32 shardId, std::string &cookie, std::string &addr);
|
|
|
|
TShardList getShards() { return m_Shards; }
|
|
|
|
protected:
|
|
std::string m_Login;
|
|
std::string m_Password;
|
|
std::string m_ClientApp;
|
|
|
|
TShardList m_Shards;
|
|
|
|
NLNET::CTcpSock m_Sock;
|
|
};
|
|
|
|
#endif // NL_LAUNCHER_CONNECTION_H
|