bluetooth/btstack/rfcomm/rfcommsap.h
branchRCL_3
changeset 13 16aa830c86c8
parent 0 29b1cd4cb562
equal deleted inserted replaced
12:9b6d3ca0c601 13:16aa830c86c8
   172 
   172 
   173 	CCirBuffer& DataBuffer();
   173 	CCirBuffer& DataBuffer();
   174 	TInt UnusedBufferSpace() const;
   174 	TInt UnusedBufferSpace() const;
   175 
   175 
   176 	TUint16 NegotiatedMTU() const; //< Returns the negotiated MTU
   176 	TUint16 NegotiatedMTU() const; //< Returns the negotiated MTU
       
   177 	TUint16 OptimalMTUForSending() const; //< Returns the optimal MTU for sending
   177 	TUint16 UsableMTU(TUint8 aCredit) const; //< Returns the actual maximum information field size available (which with CBFC will be one less than the negotiated MTU)
   178 	TUint16 UsableMTU(TUint8 aCredit) const; //< Returns the actual maximum information field size available (which with CBFC will be one less than the negotiated MTU)
   178 
   179 
   179 	TBool ListeningTo(const TBTSockAddr& aBTSockAddr) const;
   180 	TBool ListeningTo(const TBTSockAddr& aBTSockAddr) const;
   180 	inline const CRfcommSAP& ListeningSAP() const {return *iParentSAP;};
   181 	inline const CRfcommSAP& ListeningSAP() const {return *iParentSAP;};
   181 //TRY_CBFC
   182 //TRY_CBFC
   255 	CRfcommMuxer*  iMux;
   256 	CRfcommMuxer*  iMux;
   256 	TRfcommState*  iState;
   257 	TRfcommState*  iState;
   257 	TDblQueLink    iLink;	//	Used by Muxer to keep track of the SAPs it is linked to
   258 	TDblQueLink    iLink;	//	Used by Muxer to keep track of the SAPs it is linked to
   258 	TDblQueLink    iListeningLink;	//	Used by the protocol to keep track of listening SAPs
   259 	TDblQueLink    iListeningLink;	//	Used by the protocol to keep track of listening SAPs
   259 	TDblQueLink	   iBoundLink;		//	Used by the protocol to keep track of bound SAPs
   260 	TDblQueLink	   iBoundLink;		//	Used by the protocol to keep track of bound SAPs
   260 	TUint16			iMTU;	//	Maximum data size for this SAP
   261 	TUint16			iNegotiatedMTU;	//	Maximum data size for this SAP
       
   262 	TUint16			iOptimalMTUForSending; // Optimal MTU for sending provided by L2CAP
   261 	TUint16			iUserDefinedMTU;	//	User defined MTU (0=No restriction)
   263 	TUint16			iUserDefinedMTU;	//	User defined MTU (0=No restriction)
   262 	//	Members used by listening SAP
   264 	//	Members used by listening SAP
   263 	TInt			iMaxClonesWaitingForStart;
   265 	TInt			iMaxClonesWaitingForStart;
   264 	TInt			iClonesWaitingForStart; // SAPs that were listening, have connected but haven't been Accept()ed - owned by ESOCK
   266 	TInt			iClonesWaitingForStart; // SAPs that were listening, have connected but haven't been Accept()ed - owned by ESOCK
   265 	RPointerArray<CRfcommSAP> iClonedChildren; // SAPs that are listening but not connected - owned by parent SAP
   267 	RPointerArray<CRfcommSAP> iClonedChildren; // SAPs that are listening but not connected - owned by parent SAP