예제 #1
0
	size_t wxcurl_string_write(void* ptr, size_t size, size_t nmemb, void* pcharbuf)
	{
		size_t iRealSize = size * nmemb;
		wxCharBuffer* pStr = (wxCharBuffer*) pcharbuf;

		if(pStr)
		{
			wxString str = wxCURL_BUF2STRING(*pStr) + wxString((const char*)ptr, wxConvLibc);
			*pStr = wxCURL_STRING2BUF(str);
		}

		return iRealSize;
	}
예제 #2
0
파일: http.cpp 프로젝트: tvo/springlobby
void wxCurlHTTP::SetCookieFile(const wxString& szFilePath)
{
    m_szCookieFile = wxCURL_STRING2BUF(szFilePath);
}
예제 #3
0
파일: ftp.cpp 프로젝트: KastB/OpenCPN
void wxCurlFTP::SetPortParam(const wxString& szParam /*= wxS("-")*/)
{
	m_szPortParam = wxCURL_STRING2BUF(szParam);
}