replaced my recent GSocket_SetReuseAddr() addition with GSocket_SetReusable() from the patch 992473; it also adds and documents wxSOCKET_REUSEADDR flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,6 +235,15 @@ GSocket *GSocket_WaitConnection(GSocket *socket);
|
||||
*/
|
||||
GSocketError GSocket_Connect(GSocket *socket, GSocketStream stream);
|
||||
|
||||
/* GSocket_SetReusable:
|
||||
* Simply sets the m_resuable flag on the socket. GSocket_SetServer will
|
||||
* make the appropriate setsockopt() call.
|
||||
* Implemented as a GSocket function because clients (ie, wxSocketServer)
|
||||
* don't have access to the GSocket struct information.
|
||||
* Returns TRUE if the flag was set correctly, FALSE if an error occured
|
||||
* (ie, if the parameter was NULL)
|
||||
*/
|
||||
int GSocket_SetReusable(GSocket *socket);
|
||||
|
||||
/* Datagram sockets */
|
||||
|
||||
@@ -277,7 +286,6 @@ GSocketError GSocket_GetSockOpt(GSocket *socket, int level, int optname,
|
||||
|
||||
GSocketError GSocket_SetSockOpt(GSocket *socket, int level, int optname,
|
||||
const void *optval, int optlen);
|
||||
GSocketError GSocket_SetReuseAddr(GSocket *socket);
|
||||
|
||||
void GSocket_Streamed(GSocket *socket);
|
||||
void GSocket_Unstreamed(GSocket *socket);
|
||||
|
Reference in New Issue
Block a user