Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User 182guide's Avatar
    Join Date
    Oct 2009
    Posts
    47
    Hello all,

    I try to implement the socket programming which can send data to server. But when I send data to server, server can receive data but my emulator is closed immediately. I try to fix this for a day, I found that I happen because the code that attempt to connect to server like this:
    User::LeaveIfError(iSocketServ.Connect());

    // Open the socket
    User::LeaveIfError(iSocket.Open(iSocketServ, KAfInet, KSockStream,KProtocolInetTcp));

    //Connect the socket (has problem)
    connectInetAddr.SetAddress(KInetAddr);

    connectInetAddr.SetPort(2500); //TLS port

    iSocket.Connect(connectInetAddr,iStatus);


    iSocket.Close();
    iSocketServ.Close();
    Please suggest me why it happens and advice another solution to connect server for me

    Thanks a lot
    Guide

  2. #2
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Make sure to run the emulator process and not your own application. See Running the emulator from Carbide.c++ to learn about the different way to run your application.

    Then do the proper debugging of the code, identify the problem and solve the root cause.

Similar Threads

  1. XML onLoad with background http server problem
    By simonjuric in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-06-08, 16:47
  2. TCP server packet receiving problem
    By raj_rr7 in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2007-07-12, 12:24
  3. Socket : server gets data only when I exit client app
    By viku_006 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-06-25, 12:26
  4. Connecting to Mobile from a remote server through GPRS connection
    By go4jas in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-11-09, 06:14
  5. N70 Reset bug
    By sebboB in forum General Development Questions
    Replies: 2
    Last Post: 2005-12-28, 23:09

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