×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130

    file transfer via IrDA

    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
  •  
×