×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    How to receive sms to a particular port?

    Hi All,
    I am developing an application in that I want to receive sms on particular port and invoke my application automatically after receiving sms to particular port.How should I achieved this situation?
    Please help me ASAP...
    Thanx...
    Last edited by devdattac; 2009-02-27 at 10:55.

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: How to receive sms to a particular port?

    try this its working for me..

    RSocketServ iSocketServer;
    RSocket iSmsSocket;
    TPckgBuf<TUint> iSbuf;
    User::LeaveIfError(iSocketServer.Connect());
    TInt err = User::LeaveIfError(iSmsSocket.Open(iSocketServer, KSMSAddrFamily, KSockDatagram, KSMSDatagramProtocol));

    // Set SMS port- only SMS messages that will receive on specified port.
    TSmsAddr smsAddr;
    smsAddr.SetSmsAddrFamily(static_cast<TSmsAddrFamily>(9));
    smsAddr.SetPort(50000); // say aPort = 50000
    User::LeaveIfError(iSocket.Bind(smsAddr));

  3. #3
    Registered User
    Join Date
    Mar 2006
    Location
    India
    Posts
    503

    Re: How to receive sms to a particular port?

    Regards
    Kamal :)
    ------------------
    You never expect what expects you.

Similar Threads

  1. Specifying port number while sending SMS?
    By sunil_bhambani123 in forum Mobile Java Networking & Messaging & Security
    Replies: 18
    Last Post: 2009-03-24, 06:09
  2. Is SMS port for WMA only?
    By amru in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2009-03-24, 05:09
  3. Midlet receive SMS at port > 0 and transfer to pc?
    By bahriesz in forum General Messaging
    Replies: 0
    Last Post: 2008-11-12, 02:24
  4. SMS port (Listener)
    By ysuter in forum General Messaging
    Replies: 2
    Last Post: 2005-11-02, 17:46
  5. Can't send & receive SMS using 8310 & SDK 30
    By iwanp in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-04-16, 13:23

Posting Permissions

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