Added groupBots and displayInfos commands
[ryzomcore.git] / nelns / login_system / nel_launcher_qt / connection.h
bloba3afb5882be7775391dbbf1f1e7ee51762c1ca8c
1 #ifndef NL_LAUNCHER_CONNECTION_H
2 #define NL_LAUNCHER_CONNECTION_H
4 #include <string>
5 #include <vector>
7 #include <nel/net/tcp_sock.h>
9 #include "shard.h"
11 typedef std::vector<CShard> TShardList;
13 class CNelLauncherConnection
15 public:
16 bool connect();
17 bool send(const std::string &url);
18 bool receive(std::string &res);
19 std::string checkLogin(const std::string &login, const std::string &password, const std::string &clientApp);
20 std::string selectShard(uint32 shardId, std::string &cookie, std::string &addr);
22 TShardList getShards() { return m_Shards; }
24 protected:
25 std::string m_Login;
26 std::string m_Password;
27 std::string m_ClientApp;
29 TShardList m_Shards;
31 NLNET::CTcpSock m_Sock;
34 #endif // NL_LAUNCHER_CONNECTION_H