#include "wx/setup.h"
#include "wx/platform.h"
-#include "wx/dlimpexp.h" // for WXDLLIMPEXP_NET
+#include "wx/dlimpexp.h" /* for WXDLLIMPEXP_NET */
#endif
#ifdef wxUSE_GSOCKET_CPLUSPLUS
typedef class GSocketBSD GSocket;
-#endif //def wxUSE_GSOCKET_CPLUSPLUS
+#endif
#ifdef __cplusplus
extern "C" {
#ifndef wxUSE_GSOCKET_CPLUSPLUS
typedef struct _GSocket GSocket;
-#endif //ndef wxUSE_GSOCKET_CPLUSPLUS
+#endif
typedef struct _GAddress GAddress;
typedef enum {
*/
void GSocket_SetTimeout(GSocket *socket, unsigned long millisec);
-#endif //ndef wxUSE_GSOCKET_CPLUSPLUS
+#endif /* ndef wxUSE_GSOCKET_CPLUSPLUS */
/* GSocket_GetError:
* Returns the last error occured for this socket. Note that successful
*/
void GSocket_UnsetCallback(GSocket *socket, GSocketEventFlags flags);
-#endif //ndef wxUSE_GSOCKET_CPLUSPLUS
+#endif /* ndef wxUSE_GSOCKET_CPLUSPLUS */
/* GAddress */
#ifdef wxUSE_GSOCKET_CPLUSPLUS
#include "wx/unix/gsockunx.h"
-#endif // def wxUSE_GSOCKET_CPLUSPLUS
+#endif
#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */
virtual void EventLoop_Install_Callback(GSocketEvent event) = 0;
virtual void EventLoop_Uninstall_Callback(GSocketEvent event) = 0;
public:
-//DFE: We can't protect these data member until the GUI code is updated
-//protected:
-#else //def wxUSE_GSOCKET_CPLUSPLUS
+ /* DFE: We can't protect these data member until the GUI code is updated */
+ /* protected: */
+#else /* def wxUSE_GSOCKET_CPLUSPLUS */
#ifdef __cplusplus
extern "C" {
/* Definition of GSocket */
struct _GSocket
{
-#endif //def wxUSE_GSOCKET_CPLUSPLUS
+#endif /* def wxUSE_GSOCKET_CPLUSPLUS */
int m_fd;
GAddress *m_local;
GAddress *m_peer;
}
#endif /* __cplusplus */
#else
-///////////////////////////////////////////////////////////////////////////
-// GSocketBSDGUIShim
+/**************************************************************************/
+/* GSocketBSDGUIShim */
class GSocketBSDGUIShim:public GSocketBSD
{
friend void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *guifunc);
static struct GSocketGUIFunctionsTable *ms_gui_functions;
};
-#endif //ndef wxUSE_GSOCKET_CPLUSPLUS
+#endif /* ndef wxUSE_GSOCKET_CPLUSPLUS */
#ifdef __cplusplus
extern "C" {
}
#endif /* __cplusplus */
-// Compatibility methods to support old C API (from gsocket.h)
+/* Compatibility methods to support old C API (from gsocket.h) */
#ifdef wxUSE_GSOCKET_CPLUSPLUS
inline void GSocket_Shutdown(GSocket *socket)
{ socket->Shutdown(); }
inline void GSocket_UnsetCallback(GSocket *socket, GSocketEventFlags flags)
{ socket->UnsetCallback(flags); }
-#endif //def wxUSE_GSOCKET_CPLUSPLUS
+#endif /* def wxUSE_GSOCKET_CPLUSPLUS */
#ifdef __cplusplus
extern "C" {
#ifndef wxUSE_GSOCKET_CPLUSPLUS
void _GSocket_Detected_Read(GSocket *socket);
void _GSocket_Detected_Write(GSocket *socket);
-#endif //ndef wxUSE_GSOCKET_CPLUSPLUS
+#endif /* ndef wxUSE_GSOCKET_CPLUSPLUS */
/* GAddress */
void GSocket_close(GSocket *socket)
{
_GSocket_Disable_Events(socket);
-// gsockosx.c calls CFSocketInvalidate which closes the socket for us
+ /* gsockosx.c calls CFSocketInvalidate which closes the socket for us */
#if !(defined(__DARWIN__) && (defined(__WXMAC__) || defined(__WXCOCOA__)))
close(socket->m_fd);
#endif
{
#else
/* Use gethostbyname by default */
- int val = 1; //VA doesn't like constants in conditional expressions at all
+ int val = 1; /* VA doesn't like constants in conditional expressions */
if (val)
{
#endif