Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor nmnir's Avatar
    Join Date
    May 2003
    Posts
    471
    Hi,

    I'm trying for days now to get the socket example to work on the emulator and allways get "connection failed (-34)".

    I'm able to connect to www.google.com using the services on the emulator.

    Pleassssssssssssssse, help me on this.

    Thanks, nmnir

  2. #2
    Regular Contributor RyanSantos's Avatar
    Join Date
    Jun 2005
    Location
    Philippines
    Posts
    163
    Then that means you might be connecting to something invalid.... This is my first impression about this.

  3. #3
    Regular Contributor nmnir's Avatar
    Join Date
    May 2003
    Posts
    471
    Thanks Ryan,

    It seems that you are right, that example may not work on the emulator.

    Nahum.

  4. #4
    Registered User lutku's Avatar
    Join Date
    May 2005
    Posts
    22
    I don't have source code for that socket example but I guess it's trying to open some simple TCP connection to specified destination. Is it also doing some domain name resolution for the destination name (using RHostResolver)? Or does it support only plain ip addresses?

    Services application is most probably connecting to www.google.com by using HTTP protocol. There could be even firewall running on your computer which allows such HTTP communication (normally TCP to port 80) but not TCP to some different port (which could be case when using the example).

    One good way to test the socket example could be running some simple TCP server on your local machine and connecting it with emulator's sockets example. You could code a TCP server listening for incoming connections very easily with Perl. Or you can pick up ready made code from Internet: http://www.rocketaware.com/perl/perl..._IO_Socket.htm

Similar Threads

  1. Replies: 1
    Last Post: 2005-05-26, 14:22
  2. 3530 save JPG
    By plkilroy in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-06-02, 02:45
  3. Where to find application that uses sockets?
    By doctordwarf in forum Mobile Java General
    Replies: 1
    Last Post: 2004-03-10, 15:45
  4. Problem with Photos Album Save
    By aquinaul in forum Symbian C++
    Replies: 1
    Last Post: 2003-02-07, 15:33
  5. Save graphics context
    By matdodgson in forum Symbian C++
    Replies: 0
    Last Post: 2003-02-07, 00:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved