basic UDP support (patch 835128)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-25 11:16:31 +00:00
parent fdaebb0520
commit bfa7bf7d6b
6 changed files with 101 additions and 3 deletions

View File

@@ -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,14 @@ 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);
void GSocket_Streamed(GSocket *socket);
void GSocket_Unstreamed(GSocket *socket);
/* Attributes */