]> git.saurik.com Git - wxWidgets.git/commitdiff
added connect sequence for mac
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 24 Aug 2001 19:42:13 +0000 (19:42 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 24 Aug 2001 19:42:13 +0000 (19:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/http.cpp

index d147823f1572fe0974f3f7b572f045886ac37f8d..52f6e362c748fde47da55555d1aad5eee0f14425 100644 (file)
@@ -308,8 +308,16 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path)
     return NULL;
 
   // We set m_connected back to FALSE so wxSocketBase will know what to do.
+#ifdef __WXMAC__
+        wxSocketClient::Connect(*m_addr , FALSE );
+        wxSocketClient::WaitOnConnect(10);
+
+    if (!wxSocketClient::IsConnected())
+        return NULL;
+#else
   if (!wxProtocol::Connect(*m_addr))
     return NULL;
+#endif
 
   if (!BuildRequest(path, wxHTTP_GET))
     return NULL;