* wxSocket fixes: FTP, HTTP works really now. GTK fixes to prevent infinite loop.
* wxSocket stream fix: they can be encapsulated by now * Doc update: wxURL::GetPath git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,6 +32,8 @@ class WXDLLEXPORT wxSocketOutputStream : public wxOutputStream
|
||||
|
||||
protected:
|
||||
wxSocketBase *m_o_socket;
|
||||
|
||||
size_t OnSysWrite(const void *buffer, size_t bufsize);
|
||||
};
|
||||
|
||||
class WXDLLEXPORT wxSocketInputStream : public wxInputStream
|
||||
@@ -48,6 +50,8 @@ class WXDLLEXPORT wxSocketInputStream : public wxInputStream
|
||||
|
||||
protected:
|
||||
wxSocketBase *m_i_socket;
|
||||
|
||||
size_t OnSysRead(void *buffer, size_t bufsize);
|
||||
};
|
||||
|
||||
class WXDLLEXPORT wxSocketStream : public wxSocketInputStream,
|
||||
|
@@ -81,7 +81,10 @@ class WXDLLEXPORT wxSocketBase : public wxEvtHandler
|
||||
{
|
||||
DECLARE_CLASS(wxSocketBase)
|
||||
#ifdef __WXMAC__
|
||||
friend void wxMacSocketOnRequestProc(void *refcon , short event) ;
|
||||
friend void wxMacSocketOnRequestProc(void *refcon , short event) ;
|
||||
#endif
|
||||
#if defined(__WXGTK__) && defined(WXSOCK_INTERNAL)
|
||||
friend void wxPrereadSocket(wxSocketBase *sock);
|
||||
#endif
|
||||
public:
|
||||
|
||||
|
@@ -62,6 +62,7 @@ public:
|
||||
{ return m_protoinfo->m_protoname; }
|
||||
inline wxProtocol& GetProtocol() { return *m_protocol; }
|
||||
inline wxURLError GetError() const { return m_error; }
|
||||
inline wxString GetPath() const { return m_path; }
|
||||
|
||||
wxInputStream *GetInputStream();
|
||||
|
||||
|
Reference in New Issue
Block a user