-/////////////////////////////////////////////////////////////////////////////
-// wxWindows headers
-/////////////////////////////////////////////////////////////////////////////
-#include <wx/defs.h>
-#include <wx/object.h>
-#include <wx/string.h>
-#include <wx/timer.h>
-#include <wx/utils.h>
-
-// Not enough OS behaviour defined for wxStubs
-#ifndef __WXSTUBS__
-
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
-/////////////////////////////////////////////////////////////////////////////
-// System specific headers
-/////////////////////////////////////////////////////////////////////////////
-#ifdef __WXMAC__
-// in order to avoid problems with our c library and double definitions
-#define close closesocket
-#define ioctl ioctlsocket
-
-#include <wx/mac/macsock.h>
-extern GUSISpinFn GUSISpin;
-#define PROCESS_EVENTS() wxMacProcessEvents()
-const short kwxMacNetEventsMax = 1000 ;
-short wxMacNetEventsTop = 0 ;
-short wxMacNetEventsBottom = 0 ;
-short wxMacNetEventsEvents[kwxMacNetEventsMax] ;
-void *wxMacNetEventsReferences[kwxMacNetEventsMax] ;
-
-#define FD_READ 1
-#define FD_WRITE 2
-#define FD_CLOSE 4
-#define FD_ACCEPT 8
-#define FD_CONNECT 16
-#define FD_READY 32
-
-extern "C" void wxMacSocketHandlerProc( void *refcon , short event ) ; // adds events
-extern "C" void wxMacSocketOnRequestProc( void *refcon , short event ) ; // consumes them
-extern "C" void GUSISetReference( short sock , short eventmask , void * data ) ;
-void wxMacProcessEvents() ;
-#endif
-
-#if defined(__WINDOWS__)
- #include <winsock.h>
-#endif // __WINDOWS__
-
-#if defined(__UNIX__)
-
-#ifdef VMS
- #include <socket.h>
-#else // !VMS
- #include <sys/socket.h>
-#endif // VMS/!VMS
-
-#include <sys/ioctl.h>
-
-#include <sys/time.h>
-#include <unistd.h>
-
-#ifdef sun
- #include <sys/filio.h>
-#endif
-
-#endif // __UNIX__
-
-#include <signal.h>
-#include <errno.h>
-
-#ifdef __VISUALC__
- #include <io.h>
-#endif
-
-#if defined(__WXMOTIF__) || defined(__WXXT__)
- #include <X11/Intrinsic.h>
-
- /////////////////////////////
- // Needs internal variables
- /////////////////////////////
- #ifdef __WXXT__
- #define Uses_XtIntrinsic
- #endif
-#endif // Motif or Xt
-
-#if defined(__WXGTK__)
- #include <gtk/gtk.h>
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// wxSocket headers
-/////////////////////////////////////////////////////////////////////////////