wxSocket compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-07-27 13:25:16 +00:00
parent b2158ed0da
commit ca17eff36b
2 changed files with 9 additions and 10 deletions

View File

@@ -916,7 +916,7 @@ class WXDLLEXPORT wxSocketModule: public wxModule {
return TRUE; return TRUE;
} }
void OnExit() { void OnExit() {
GSocket_Done(); GSocket_Cleanup();
} }
}; };

View File

@@ -34,10 +34,10 @@
#endif #endif
#include <signal.h> #include <signal.h>
//#include <features.h> /* #include <features.h> */
#include <wx/setup.h> #include "wx/setup.h"
#include <wx/gsocket.h> #include "wx/gsocket.h"
#include "gsockunx.h" #include "gsockunx.h"
#ifndef SOCKLEN_T #ifndef SOCKLEN_T
@@ -62,10 +62,6 @@ void GSocket_Cleanup()
{ {
} }
void GSocket_Done()
{
}
/* Constructors / Destructors */ /* Constructors / Destructors */
GSocket *GSocket_new() GSocket *GSocket_new()
@@ -570,7 +566,9 @@ int _GSocket_Recv_Stream(GSocket *socket, char *buffer, int size)
int _GSocket_Recv_Dgram(GSocket *socket, char *buffer, int size) int _GSocket_Recv_Dgram(GSocket *socket, char *buffer, int size)
{ {
struct sockaddr from; struct sockaddr from;
int fromlen, ret;
SOCKLEN_T fromlen;
int ret;
fromlen = sizeof(from); fromlen = sizeof(from);
@@ -740,8 +738,9 @@ void _GAddress_translate_from(GAddress *address, struct sockaddr *addr, int len)
break; break;
#endif #endif
default: default:
{
/* TODO error */ /* TODO error */
}
} }
if (address->m_addr) if (address->m_addr)