Provide implementation for GSocket_new
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fe942d6f1d
commit
f5d5bd1ddc
@ -1163,6 +1163,16 @@ int GSocket::Send_Dgram(const char *buffer, int size)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Compatibility functions for GSocket */
|
||||||
|
GSocket *GSocket_new(void)
|
||||||
|
{
|
||||||
|
GSocket *newsocket = new GSocket();
|
||||||
|
if(newsocket->IsOk())
|
||||||
|
return newsocket;
|
||||||
|
delete newsocket;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* -------------------------------------------------------------------------
|
* -------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user