×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    64

    Question about socket communicate

    Hi,

    I use socket for communication between flash app and C++ app,

    Flash code:
    loadVariables("http://127.0.0.1:9999/explorecard", _root);

    C++ code:
    RSocket::Listen(),RSocket::Accept(),RSocket::RecvOneOrMore(),
    RSocket::CancelAll(),RSocket::Close()....

    Basiclly, it works, flash app could send command to C++ app, but every time when flash app send a command, it show following:

    Internet:
    Unable to connect to network. Try again later.(-190)

    It seems, C++ app don't return wright content to flash, what should C++ app do after receiving a command?

    My handset is N77,FL1.1,S60_3rd

    Thank you!

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Question about socket communicate

    you are trying to communicate using the HTTP protocol, and for this you have to implement a mini-webserver.

    The server should send back the data along with standard HTTP headers, and body with key-value pairs that FL supports.

    I think this link will help you with standard HTTP communications http://www.jmarshall.com/easy/http/

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: Question about socket communicate

    Hi..

    I have developed a Symbian mobile application for both s60 2nd edition and 3rd edition.

    Final thing is, after installing it to phone, when i start first time, it will ask to enter registration key. then, it should communicate with a web mysql database to verify whether the registration key that is entered by user is correct or not.

    I am beginner in web development. so please help me what to do?


    thanks

  4. #4
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: Question about socket communicate

    Hi..

    I have developed a Symbian mobile application for both s60 2nd edition and 3rd edition.

    Final thing is, after installing it to phone, when i start first time, it will ask to enter registration key. then, it should communicate with a web mysql database to verify whether the registration key that is entered by user is correct or not.

    I am beginner in web development. so please help me what to do?

    thanks

  5. #5
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Question about socket communicate

    Quote Originally Posted by kuddy_abc View Post
    Hi..

    I have developed a Symbian mobile application for both s60 2nd edition and 3rd edition.

    Final thing is, after installing it to phone, when i start first time, it will ask to enter registration key. then, it should communicate with a web mysql database to verify whether the registration key that is entered by user is correct or not.

    I am beginner in web development. so please help me what to do?

    thanks
    If u developed ur application in Symbian C++, then u r in wrong section (correct section for symbian c++ development issues is here ) but if u develop ur application using flash lite, then i dont think u can interact with a sql server but u can use sendAndLoad method to send & load variables over a php & compare it with the entered password . Hope it helps u ..

    Best Regards,
    SajiSoft

Similar Threads

  1. Socket and Bluetooth and USB (DKU-2)
    By adamis22 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-04-24, 15:41
  2. socket and datagram problem
    By metebalci in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-08-12, 15:42
  3. socket server application using Series 60 SDK
    By irohit in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-09-16, 05:27
  4. How 2 MIDP can communicate on the same socket using TCPIP
    By nnigam09 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-07-22, 06:49

Posting Permissions

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