mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-07 06:52:07 +00:00
first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user