* Add my name to authors as the new maintainer.

* Include wxWindows header files in the standard manner.
* Use the new wxAppTraits::CreateGSocket() method.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-01-18 21:39:17 +00:00
parent 49bcad6219
commit 5c2896013b

View File

@@ -1,17 +1,20 @@
/* ------------------------------------------------------------------------- /* -------------------------------------------------------------------------
* Project: GSocket (Generic Socket) for WX * Project: GSocket (Generic Socket) for WX
* Name: gsocket.c * Name: gsocket.c
* Authors: Guilhem Lavaux, * Authors: David Elliott (C++ conversion, maintainer)
* Guillermo Rodriguez Garcia <guille@iies.es> (maintainer) * Guilhem Lavaux,
* Guillermo Rodriguez Garcia <guille@iies.es>
* Purpose: GSocket main Unix and OS/2 file * Purpose: GSocket main Unix and OS/2 file
* Licence: The wxWindows licence * Licence: The wxWindows licence
* CVSID: $Id$ * CVSID: $Id$
* ------------------------------------------------------------------------- * -------------------------------------------------------------------------
*/ */
#ifndef __GSOCKET_STANDALONE__ #include "wx/wxprec.h"
#include "wx/setup.h" #ifndef WX_PRECOMP
#endif #include "wx/app.h"
#include "wx/apptrait.h"
#endif //ndef WX_PRECOMP
#if defined(__VISAGECPP__) #if defined(__VISAGECPP__)
/* Seems to be needed by Visual Age C++, though I don't see how it manages /* Seems to be needed by Visual Age C++, though I don't see how it manages
@@ -1401,7 +1404,7 @@ void GSocketBSD::Detected_Write()
/* Compatibility functions for GSocket */ /* Compatibility functions for GSocket */
GSocket *GSocket_new(void) GSocket *GSocket_new(void)
{ {
GSocket *newsocket = new GSocketBSDGUIShim(); GSocket *newsocket = wxTheApp->GetTraits()->CreateGSocket();
if(newsocket->IsOk()) if(newsocket->IsOk())
return newsocket; return newsocket;
delete newsocket; delete newsocket;