added clientcontext variable to Open Transport initialisation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-05-06 18:58:51 +00:00
parent d2c6d54928
commit b97e22c0ca
2 changed files with 32 additions and 20 deletions

View File

@@ -197,11 +197,17 @@ int GSocket_Init()
{
OSStatus err ;
#if TARGET_CARBON
InitOpenTransportInContext( kInitOTForApplicationMask , NULL ) ;
// Marc Newsam: added the clientcontext variable
// however, documentation is unclear how this works
OTClientContextPtr clientcontext;
InitOpenTransportInContext(kInitOTForApplicationMask, &clientcontext);
gInetSvcRef = OTOpenInternetServicesInContext(kDefaultInternetServicesPath,
NULL, &err, clientcontext);
#else
InitOpenTransport() ;
#endif
gInetSvcRef = OTOpenInternetServices(kDefaultInternetServicesPath, NULL, &err);
#endif
if ( gInetSvcRef == NULL || err != kOTNoError )
{
OTAssert("Could not open Inet Services", err == noErr);

View File

@@ -197,11 +197,17 @@ int GSocket_Init()
{
OSStatus err ;
#if TARGET_CARBON
InitOpenTransportInContext( kInitOTForApplicationMask , NULL ) ;
// Marc Newsam: added the clientcontext variable
// however, documentation is unclear how this works
OTClientContextPtr clientcontext;
InitOpenTransportInContext(kInitOTForApplicationMask, &clientcontext);
gInetSvcRef = OTOpenInternetServicesInContext(kDefaultInternetServicesPath,
NULL, &err, clientcontext);
#else
InitOpenTransport() ;
#endif
gInetSvcRef = OTOpenInternetServices(kDefaultInternetServicesPath, NULL, &err);
#endif
if ( gInetSvcRef == NULL || err != kOTNoError )
{
OTAssert("Could not open Inet Services", err == noErr);