view include/net.h @ 10:36811fd22bd2

v1.4
author pyon@macmini
date Thu, 08 Nov 2018 19:15:43 +0900
parents ae89ce4793d8
children 799b6008db8e
line wrap: on
line source

// Filename   : net.h
// Last Change: 2018-11-08 木 10:09:04.
//

#ifndef __NET_H__
#define __NET_H__

#include <wx/msgdlg.h> 
#include <wx/wfstream.h>
#include <wx/protocol/http.h>

class RsHttp {
	private:
		wxString m_server;
		int      m_port;

	public:
		RsHttp();
		~RsHttp();

		void SetServer( wxString server, int port ) { m_server = server; m_port = port; };
		bool Get( wxString url, wxString file );
		bool GetDB();
		int  GetImagesSize( wxString hhs, wxString date );
		void GetImages( wxString hhs, wxString date );
		void GetImages2Memory( wxString hhs, wxString date );
};

#endif //__NET_H__