Changed to use current wxSocket flag names instead of old ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6f505cae82
commit
fc4b32c270
@ -45,7 +45,7 @@ wxHTTP::wxHTTP()
|
|||||||
m_read = FALSE;
|
m_read = FALSE;
|
||||||
m_proxy_mode = FALSE;
|
m_proxy_mode = FALSE;
|
||||||
|
|
||||||
SetNotify(GSOCK_LOST_FLAG);
|
SetNotify(wxSOCKET_LOST_FLAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxHTTP::~wxHTTP()
|
wxHTTP::~wxHTTP()
|
||||||
@ -264,7 +264,8 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
|
|||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
class wxHTTPStream : public wxSocketInputStream {
|
class wxHTTPStream : public wxSocketInputStream
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
wxHTTP *m_http;
|
wxHTTP *m_http;
|
||||||
size_t m_httpsize;
|
size_t m_httpsize;
|
||||||
@ -293,11 +294,7 @@ size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
|
|||||||
|
|
||||||
bool wxHTTP::Abort(void)
|
bool wxHTTP::Abort(void)
|
||||||
{
|
{
|
||||||
bool ret;
|
return wxSocketClient::Close();
|
||||||
|
|
||||||
ret = wxSocketClient::Close();
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxInputStream *wxHTTP::GetInputStream(const wxString& path)
|
wxInputStream *wxHTTP::GetInputStream(const wxString& path)
|
||||||
@ -324,7 +321,7 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path)
|
|||||||
inp_stream->m_read_bytes = 0;
|
inp_stream->m_read_bytes = 0;
|
||||||
|
|
||||||
Notify(FALSE);
|
Notify(FALSE);
|
||||||
SetFlags(SPEED | WAITALL);
|
SetFlags(wxSOCKET_BLOCK | wxSOCKET_WAITALL);
|
||||||
|
|
||||||
return inp_stream;
|
return inp_stream;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user