Lines Matching refs:theOTResult

439 OTResult	theOTResult = noErr;  in MyBusyWait()  local
449 theOTResult = ioSocket->mAsyncOperationResult; in MyBusyWait()
456 theOTResult = (*(ioSocket->mIdleWaitCallback))(ioSocket->mUserRefPtr); in MyBusyWait()
458 if (theOTResult != noErr && returnImmediatelyOnError) in MyBusyWait()
466 theOTResult = kMacSocket_TimeoutErr; in MyBusyWait()
477 *outOTResult = theOTResult; in MyBusyWait()
656 OTResult theOTResult; in MacSocket_Shutdown() local
674 theOTResult = ::OTCloseProvider(theSocketStruct->mEndPointRef); in MacSocket_Shutdown()
741 OTResult theOTResult; in MacSocket_socket() local
757theOTResult = ::OTAsyncOpenEndpoint(OTCreateConfiguration(kTCPName),0,nil,OTNonYieldingNotifier,(v… in MacSocket_socket()
759 …sageAndLongIntAndBailIfError(theOTResult,"MacSocket_socket: Can't create OT endpoint, OTAsyncOpenE… in MacSocket_socket()
761 …BailIfError(MyBusyWait(theSocketStruct,false,&theOTResult,&(theSocketStruct->mReceivedTOpenComplet… in MacSocket_socket()
763 …sageAndLongIntAndBailIfError(theOTResult,"MacSocket_socket: Can't create OT endpoint, OTAsyncOpenE… in MacSocket_socket()
807 OTResult theOTResult; in MacSocket_listen() local
812 …dRequestedAddrInfo = (TBind *) ::OTAlloc(theSocketStruct->mEndPointRef,T_BIND,T_ADDR,&theOTResult); in MacSocket_listen()
814 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't allocate OT T_BIND structure, O… in MacSocket_listen()
820 …>mAssignedAddrInfo = (TBind *) ::OTAlloc(theSocketStruct->mEndPointRef,T_BIND,T_ADDR,&theOTResult); in MacSocket_listen()
822 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't allocate OT T_BIND structure, O… in MacSocket_listen()
828 …t->mRemoteAddrInfo = (TCall *) ::OTAlloc(theSocketStruct->mEndPointRef,T_CALL,T_ADDR,&theOTResult); in MacSocket_listen()
830 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't allocate OT T_CALL structure, O… in MacSocket_listen()
839 theOTResult = ::OTInetGetInterfaceInfo(&theInetInterfaceInfo,kDefaultInetInterface); in MacSocket_listen()
841 …dLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't determine OT interface info, OTInetGet… in MacSocket_listen()
857 theOTResult = ::OTSetSynchronous(theSocketStruct->mEndPointRef); in MacSocket_listen()
859 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't set OT endpoint mode, OTSetSync… in MacSocket_listen()
861 theOTResult = NegotiateIPReuseAddrOption(theSocketStruct->mEndPointRef,true); in MacSocket_listen()
863 …ongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't set OT IP address reuse flag, NegotiateI… in MacSocket_listen()
865 theOTResult = ::OTSetAsynchronous(theSocketStruct->mEndPointRef); in MacSocket_listen()
867 …sageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't set OT endpoint mode, OTSetAsync… in MacSocket_listen()
872theOTResult = ::OTBind(theSocketStruct->mEndPointRef,theSocketStruct->mBindRequestedAddrInfo,theSo… in MacSocket_listen()
874 …ErrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't bind OT endpoint, OTBind… in MacSocket_listen()
876 …BailIfError(MyBusyWait(theSocketStruct,false,&theOTResult,&(theSocketStruct->mReceivedTBindComplet… in MacSocket_listen()
878 …ErrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't bind OT endpoint, OTBind… in MacSocket_listen()
887 theOTResult = ::OTListen(theSocketStruct->mEndPointRef,theSocketStruct->mRemoteAddrInfo); in MacSocket_listen()
889 if (theOTResult == noErr) in MacSocket_listen()
893theOTResult = ::OTAccept(theSocketStruct->mEndPointRef,theSocketStruct->mEndPointRef,theSocketStru… in MacSocket_listen()
895 …rrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't begin OT accept, OTAccept… in MacSocket_listen()
897 BailIfError(MyBusyWait(theSocketStruct,false,&theOTResult,&(theSocketStruct->mReceivedTPassCon))); in MacSocket_listen()
899 …orMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_listen: Can't accept OT connection, OTAcc… in MacSocket_listen()
902 else if (theOTResult == kOTNoDataErr) in MacSocket_listen()
904 theOTResult = noErr; in MacSocket_listen()
909 …rrorMessageAndLongIntAndBail("MacSocket_listen: Can't begin OT listen, OTListen() = ",theOTResult); in MacSocket_listen()
959 OTResult theOTResult; in MacSocket_connect() local
961 …dRequestedAddrInfo = (TBind *) ::OTAlloc(theSocketStruct->mEndPointRef,T_BIND,T_ADDR,&theOTResult); in MacSocket_connect()
963 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't allocate OT T_BIND structure, … in MacSocket_connect()
967 …>mAssignedAddrInfo = (TBind *) ::OTAlloc(theSocketStruct->mEndPointRef,T_BIND,T_ADDR,&theOTResult); in MacSocket_connect()
969 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't allocate OT T_BIND structure, … in MacSocket_connect()
973 …t->mRemoteAddrInfo = (TCall *) ::OTAlloc(theSocketStruct->mEndPointRef,T_CALL,T_ADDR,&theOTResult); in MacSocket_connect()
975 …ssageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't allocate OT T_CALL structure, … in MacSocket_connect()
981 theOTResult = ::OTBind(theSocketStruct->mEndPointRef,nil,theSocketStruct->mAssignedAddrInfo); in MacSocket_connect()
983 …rrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't bind OT endpoint, OTBind… in MacSocket_connect()
985 …BailIfError(MyBusyWait(theSocketStruct,false,&theOTResult,&(theSocketStruct->mReceivedTBindComplet… in MacSocket_connect()
987 …rrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't bind OT endpoint, OTBind… in MacSocket_connect()
1009 theOTResult = ::OTConnect(theSocketStruct->mEndPointRef,&sndCall,nil); in MacSocket_connect()
1011 if (theOTResult == kOTNoDataErr) in MacSocket_connect()
1013 theOTResult = noErr; in MacSocket_connect()
1016 …rMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't connect OT endpoint, OTConn… in MacSocket_connect()
1018 BailIfError(MyBusyWait(theSocketStruct,false,&theOTResult,&(theSocketStruct->mReceivedTConnect))); in MacSocket_connect()
1020 if (theOTResult == kMacSocket_TimeoutErr) in MacSocket_connect()
1027 …rMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't connect OT endpoint, OTConn… in MacSocket_connect()
1030 theOTResult = ::OTRcvConnect(theSocketStruct->mEndPointRef,nil); in MacSocket_connect()
1032 …eAndLongIntAndBailIfError(theOTResult,"MacSocket_connect: Can't complete connect on OT endpoint, O… in MacSocket_connect()
1084 OTResult theOTResult = noErr; in MacSocket_close() local
1094 theOTResult = ::OTSndOrderlyDisconnect(theSocketStruct->mEndPointRef); in MacSocket_close()
1102 theOTResult = ::OTSndOrderlyDisconnect(theSocketStruct->mEndPointRef); in MacSocket_close()
1114 if (theOTResult != noErr) in MacSocket_close()
1121 theOTResult = ::OTCloseProvider(theSocketStruct->mEndPointRef); in MacSocket_close()
1126 errCode = theOTResult; in MacSocket_close()
1198 OTResult theOTResult; in MacSocket_recv() local
1201theOTResult = ::OTRcv(theSocketStruct->mEndPointRef,(void *) ((unsigned long) outBuff + (unsigned … in MacSocket_recv()
1203 if (theOTResult >= 0) in MacSocket_recv()
1205 bytesRead = theOTResult; in MacSocket_recv()
1212 else if (theOTResult == kOTNoDataErr) in MacSocket_recv()
1219 … SetErrorMessageAndLongIntAndBail("MacSocket_recv: Can't receive OT data, OTRcv() = ",theOTResult); in MacSocket_recv()
1244 theOTResult = (*(theSocketStruct->mIdleWaitCallback))(theSocketStruct->mUserRefPtr); in MacSocket_recv()
1246 SetErrorMessageAndBailIfError(theOTResult,"MacSocket_recv: User cancelled operation"); in MacSocket_recv()
1318 OTResult theOTResult; in MacSocket_send() local
1327 theOTResult = (*(theSocketStruct->mIdleWaitCallback))(theSocketStruct->mUserRefPtr); in MacSocket_send()
1329 SetErrorMessageAndBailIfError(theOTResult,"MacSocket_send: User cancelled"); in MacSocket_send()
1333theOTResult = ::OTSnd(theSocketStruct->mEndPointRef,(void *) ((unsigned long) inBuff + bytesSent),… in MacSocket_send()
1335 if (theOTResult >= 0) in MacSocket_send()
1337 bytesSent += theOTResult; in MacSocket_send()
1339 theOTResult = noErr; in MacSocket_send()
1346 if (theOTResult == kOTFlowErr) in MacSocket_send()
1353 theOTResult = noErr; in MacSocket_send()
1356 …SetErrorMessageAndLongIntAndBailIfError(theOTResult,"MacSocket_send: Can't send OT data, OTSnd() =… in MacSocket_send()
1403 TOptMgmt theOTResult; in NegotiateIPReuseAddrOption() local
1415 theOTResult.opt.buf = buf; in NegotiateIPReuseAddrOption()
1416 theOTResult.opt.maxlen = kOTFourByteOptionSize; in NegotiateIPReuseAddrOption()
1427 errCode = ::OTOptionManagement(inEndpoint,&theOTRequest,&theOTResult); in NegotiateIPReuseAddrOption()