first commit

This commit is contained in:
2014-08-20 16:15:02 +08:00
commit f61e330e38
1633 changed files with 119931 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
//
// GameShare_NetSystem.h
// OnceAgain
//
// Created by xiaohai on 14-3-7.
//
//
#ifndef OnceAgain_GameShare_NetSystem_h
#define OnceAgain_GameShare_NetSystem_h
#include "cocos2d.h"
#include "curl/curl.h"
USING_NS_CC;
class GameShare_NetSystem: public CCNode
{
public:
GameShare_NetSystem();
~GameShare_NetSystem();
public:
virtual bool init();
static GameShare_NetSystem* ShareNetSystem();
static size_t Page_CallBack(void* ptr, size_t size, size_t nmemb, void* stream);
std::string NetSystem_HTTPRequest(const char* rpUrl, const char* rpPostParas = NULL);
private:
void EncodeStr();
void DecodeStr();
public:
std::string m_sPageResult;
std::string m_sIp;
};
#endif