Discussion Board
file transfer via IrDA
2005-03-14, 01:13
#1
Regular Contributor
hi there,
i'm having difficulties to transfer file using infrared.
i want to use CObexClient. how to get my apps connected to remote device?
i've been searchin all over and still confuse bout it.
here is my scratch code:
TObexIrProtocolInfo protocolInfo;
void CTest::ConnectToServerL()
{
RSocketServ socketServ;
TProtocolDesc pInfo;
TInt ret;
User::LeaveIfError(socketServ.Connect());
ret = socketServ.FindProtocol(_L("IrTinyTP"),pInfo);
protocolInfo.iTransport.Copy(_L("IrTinyTP"));
//protocolInfo.iAddr = iIrdaSockAddr;
protocolInfo.iClassName.Copy(_L("IrDA:IrOBEX"));
protocolInfo.iAttributeName.Copy(_L("IrDA:TinyTP:LsapSel"));\
//protocolInfo.iAddr.SetPort(intLsapSelNo);
socketServ.Close();
if (iClient)
{
delete iClient;
iClient = NULL;
}
iClient = CObexClient::NewL(protocolInfo);
iState = EGettingConnection;
iClient->Connect(iStatus);
SetActive();
}
anyone can help?
TIA
Rx-lee
Last edited by Rx-lee; 2005-03-14 at 03:46 .
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules