wxSocket compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b2158ed0da
commit
ca17eff36b
@ -916,7 +916,7 @@ class WXDLLEXPORT wxSocketModule: public wxModule {
|
||||
return TRUE;
|
||||
}
|
||||
void OnExit() {
|
||||
GSocket_Done();
|
||||
GSocket_Cleanup();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,10 +34,10 @@
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
//#include <features.h>
|
||||
/* #include <features.h> */
|
||||
|
||||
#include <wx/setup.h>
|
||||
#include <wx/gsocket.h>
|
||||
#include "wx/setup.h"
|
||||
#include "wx/gsocket.h"
|
||||
#include "gsockunx.h"
|
||||
|
||||
#ifndef SOCKLEN_T
|
||||
@ -62,10 +62,6 @@ void GSocket_Cleanup()
|
||||
{
|
||||
}
|
||||
|
||||
void GSocket_Done()
|
||||
{
|
||||
}
|
||||
|
||||
/* Constructors / Destructors */
|
||||
|
||||
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)
|
||||
{
|
||||
struct sockaddr from;
|
||||
int fromlen, ret;
|
||||
|
||||
SOCKLEN_T fromlen;
|
||||
int ret;
|
||||
|
||||
fromlen = sizeof(from);
|
||||
|
||||
@ -740,8 +738,9 @@ void _GAddress_translate_from(GAddress *address, struct sockaddr *addr, int len)
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
||||
{
|
||||
/* TODO error */
|
||||
}
|
||||
}
|
||||
|
||||
if (address->m_addr)
|
||||
|
Loading…
Reference in New Issue
Block a user