From: Stefan Neis Date: Sun, 23 Jan 2000 19:17:56 +0000 (+0000) Subject: Added GAddress_INET_SetAnyAddress and dummy UNIX address handling. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b662c13583d9fc10d7b912fb246b8f632339a279 Added GAddress_INET_SetAnyAddress and dummy UNIX address handling. Anyway, GSocket_GUI_Init/Destroy, GSocket_Enable/Disable_Events and GSocket_Install/Uninstall_Callback are still missing... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/gsocket.c b/src/os2/gsocket.c index cc9d78f7cc..db5644dad7 100644 --- a/src/os2/gsocket.c +++ b/src/os2/gsocket.c @@ -1126,6 +1126,11 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname) return GSOCK_NOERROR; } +GSocketError GAddress_INET_SetAnyAddress(GAddress *address) +{ + return GAddress_INET_SetHostAddress(address, INADDR_ANY); +} + GSocketError GAddress_INET_SetHostAddress(GAddress *address, unsigned long hostaddr) { @@ -1235,5 +1240,32 @@ unsigned short GAddress_INET_GetPort(GAddress *address) return ntohs(addr->sin_port); } +/* + * ------------------------------------------------------------------------- + * Unix address family + * ------------------------------------------------------------------------- + */ + +GSocketError _GAddress_Init_UNIX(GAddress *address) +{ + assert (address != NULL); + address->m_error = GSOCK_INVADDR; + return GSOCK_INVADDR; +} + +GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path) +{ + assert (address != NULL); + address->m_error = GSOCK_INVADDR; + return GSOCK_INVADDR; +} + +GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf) +{ + assert (address != NULL); + address->m_error = GSOCK_INVADDR; + return GSOCK_INVADDR; +} + #endif /* wxUSE_SOCKETS */