/* Global initialisers */
-void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *)
+void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *table)
{
// do nothing, wxMac doesn't have wxBase-GUI separation yet
}
CHECK_ADDRESS(address, INET, GSOCK_INVADDR);
- address->m_host = hostaddr ;
+ address->m_host = htonl(hostaddr) ;
return GSOCK_NOERROR;
}
assert(address != NULL);
CHECK_ADDRESS(address, INET, 0);
- return address->m_host;
+ return ntohl(address->m_host);
}
unsigned short GAddress_INET_GetPort(GAddress *address)