Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor Asheesh's Avatar
    Join Date
    Jun 2003
    Posts
    83
    Hi,

    I am new to socket programming and wondering if anyone has written a bare
    minimum connect/read/write socket program in Symbian. The Socket example
    seems to be too complicated... sort of over engineered.

    Could some one post a code snippet for a bare minimum socket example.

    Thanks,

    Ash

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    it is basically almost the minimal that you need if you want to make usable socket connection.

    Anyway, you could skip one step there by using ConnectL(TUint32 aAddr) directly without resolving the IP address.

    yucca

  3. #3
    Registered User jkekoni's Avatar
    Join Date
    Feb 2004
    Posts
    124
    The Scoket example does not work correctly.

    Establish a connection. Disconnect GPRS using red button.


    Issue A disconnect command.

    Failed

    Issue A connect command.

    Failed

    Open internet connection with other application.

    Issue a connect command.

    Failed.

  4. #4
    Super Contributor sopta007's Avatar
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    Could you be a little bit more descriptive?
    What does it mean "failed"? It seems to me that if you disconnect gprs it is clear that any socket operations must fail...
    Is there any error code?

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