×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Question Socket binding error..

    hi all,

    I am using socket to send sms to a particular mobile number. But I am getting socket not binding error.

    //Opening socket
    User::LeaveIfError(
    socket.Open(sockServ, KSMSAddrFamily, KSockDatagram, KSMSDatagramProtocol));
    CAknInformationNote* informationNote = new ( ELeave )CAknInformationNote;

    TSmsAddr smsaddr;
    smsaddr.SetSmsAddrFamily(ESmsAddrSendOnly);
    smsaddr.SetPort( 16500 );

    //binding socket with Sms address

    TInt bindStatus = socket.Bind(smsaddr);
    if (bindStatus = KErrNone)
    {
    informationNote->ExecuteLD(_L("Binding Success"));
    //code to send sms
    }

    else
    {
    informationNote->ExecuteLD(_L("Binding Un Success"));
    }

    //end

    Every time I am getting the "Binding Un Success" as display...
    what is wrong with my code..

    Please help me guys..
    Thanks & Regards

    Kannan.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Socket binding error..


  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Re: Socket binding error..

    hi kumar,

    I want to send SMS to the particular port.... My J2Me app was listening to the port and receive SMS.

    I thing, using RSendas we can't send sms to a port....
    Thanks & Regards

    Kannan.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Socket binding error..

    Mr. Vinay has a Good Post in NewLC take a Look in to it.
    http://newlc.com/Sending-a-message-from-Symbian-C.html

  5. #5
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Re: Socket binding error..

    hi kumar,

    I am using socket to send Sms to a port...

    I want to know what are all the capabilities needed to send SMS to a port using socket?
    Thanks & Regards

    Kannan.

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Socket binding error..

    I fear you have to have ALL-TCB Capability. But may be Wrong what APIs you use ?

Similar Threads

  1. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  2. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 12:40
  3. Replies: 1
    Last Post: 2006-12-12, 13:50
  4. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11
  5. how to avoid linking error
    By skdas in forum Symbian
    Replies: 6
    Last Post: 2003-07-07, 07:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×