added MacTCP support

This commit is contained in:
chombier 2001-07-02 14:25:06 +00:00
parent 5908b02564
commit e3cda5c39b
1 changed files with 22 additions and 2 deletions

View File

@ -29,11 +29,31 @@ __END_DECLS
void GUSISetupFactories()
{
static Boolean sOTTested = false;
static Boolean sOTPresent = false;
#ifdef GUSISetupFactories_BeginHook
GUSISetupFactories_BeginHook
#endif
/*GUSIwithOTInetSockets();*/
GUSIwithOTTcpSockets();
/* we'll use OpenTransport if it's at least version 1.1.1 */
if ( !sOTTested ) {
long result;
NumVersion version;
if ( Gestalt(gestaltOpenTpt, &result) == noErr ) {
OSErr theErr = Gestalt(gestaltOpenTptVersions, (long*)&version);
if (theErr == noErr && (version.majorRev >= 2 || version.minorAndBugRev >= 0x11)) {
sOTPresent = true;
}
}
sOTTested = true;
}
if ( sOTPresent ) {
/*GUSIwithOTInetSockets();*/
GUSIwithOTTcpSockets();
} else {
/*GUSIwithMTInetSockets();*/
GUSIwithMTTcpSockets();
}
#ifdef GUSISetupFactories_EndHook
GUSISetupFactories_EndHook
#endif