wxSocket compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -916,7 +916,7 @@ class WXDLLEXPORT wxSocketModule: public wxModule {
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
void OnExit() {
|
void OnExit() {
|
||||||
GSocket_Done();
|
GSocket_Cleanup();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -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,9 +738,10 @@ 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)
|
||||||
free(address->m_addr);
|
free(address->m_addr);
|
||||||
|
Reference in New Issue
Block a user