X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ba6a836246ee6768c29d50adfe9fee30221da8e..0c1cc9483ecba053bc9a0983a4a8d48898e334f2:/src/mac/carbon/gsocket.cpp?ds=sidebyside diff --git a/src/mac/carbon/gsocket.cpp b/src/mac/carbon/gsocket.cpp index 04441b27df..123d9cd6b5 100644 --- a/src/mac/carbon/gsocket.cpp +++ b/src/mac/carbon/gsocket.cpp @@ -194,19 +194,11 @@ static void SetDefaultEndpointModes(EndpointRef ep , void *data ) */ } -/* Global initialisers */ - -void GSocket_SetGUIFunctions(GSocketGUIFunctionsTable *table) -{ - // do nothing, wxMac doesn't have wxBase-GUI separation yet -} - -int GSocket_Init() +bool GSocket_Init() { - return 1; + return true; } -bool GSocket_Verify_Inited() ; bool GSocket_Verify_Inited() { OSStatus err ; @@ -1314,6 +1306,11 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname) return GSOCK_NOERROR; } +GSocketError GAddress_INET_SetBroadcastAddress(GAddress *address) +{ + return GAddress_INET_SetHostAddress(address, INADDR_BROADCAST); +} + GSocketError GAddress_INET_SetAnyAddress(GAddress *address) { return GAddress_INET_SetHostAddress(address, INADDR_ANY);