X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6db2e91078a87e59ee7f0328a08802e813dabe9..c2919ab326e60322b63ae9b5d50e83bb5156efce:/include/wx/gsocket.h diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 857cc04c53..3b0faf040b 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -79,7 +79,8 @@ typedef enum { GSOCK_INVPORT, GSOCK_WOULDBLOCK, GSOCK_TIMEDOUT, - GSOCK_MEMERR + GSOCK_MEMERR, + GSOCK_OPTERR, } GSocketError; /* See below for an explanation on how events work. @@ -271,6 +272,15 @@ int GSocket_Write(GSocket *socket, const char *buffer, */ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags); +GSocketError GSocket_GetSockOpt(GSocket *socket, int level, int optname, + void *optval, int *optlen); + +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); /* Attributes */