getting a (KErrL2CAPRequestTimeout -6312) while doing a SDP search

Login to reply to this topic.
Tue, 2008-04-29 15:47
Joined: 2008-01-03
Forum posts: 18

hi

i am writing my code as follows and iAddr is the address of the device to connect
but when iAgent->NextRecordRequestL(); is called it returns with error -6312.
in NextRecordRequestComplete(). I am not getting where i am doing a mistake.

ANY HELP
Sad

void CObjectExchangeClient::FindServiceL()
{

iHasFoundService = EFalse;

// delete any existing agent and search pattern
delete iSdpSearchPattern;
iSdpSearchPattern = NULL;

delete iAgent;
iAgent = NULL;

iAgent = CSdpAgent::NewL( *this, iAddr );

iSdpSearchPattern = CSdpSearchPattern::NewL();

iSdpSearchPattern->AddL( KServiceClass );//0x1105(OBEX)
// return code is the position in the list that the UUID is inserted at
// and is intentionally ignored

iAgent->SetRecordFilterL( *iSdpSearchPattern );

iAgent->NextRecordRequestL();
}

thanks in adavance .


Mon, 2008-06-23 10:47
Joined: 2008-06-17
Forum posts: 3
while doing a SDP search

Hi,

The UUID you send matters.
Where did u find 0x1105.
As per my obeservation it might be 0x1106.

Please let me know if you have find the solution.

Bye..

Mon, 2008-06-23 12:40
Joined: 2008-01-03
Forum posts: 18
Re: getting a (KErrL2CAPRequestTimeout -6312) while doing a SD

for me that code works fine.

void CObexImplementation::FindServiceL()
{
LOG("-> @ CObexImplimentation::FindServiceL");

iHasFoundService = EFalse;
iState = EGettingConnection;
if (iSdpAgent)
{
delete iSdpAgent;
iSdpAgent = NULL;
}

iSdpAgent = CSdpAgent::NewL( *this, iAddress);

iSdpSearchPattern->AddL(KServiceClass);//adding OBEX service ID 0x1105(OBEX)

iSdpAgent->SetRecordFilterL( *iSdpSearchPattern);//Giving it the filter list
iSdpAgent->NextRecordRequestL();

LOG("<- @ CObexImplimentation::FindServiceL");
}

  • Login to reply to this topic.