×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Internet Conn asks me what kind of connection i want

    Hi,

    if i open a socket kind of ...

    Code:
    Error = socket.Open( SocketServer, 
                                          KAfInet,
    				      KSockStream,
    				      KProtocolInetTcp);
    my mobile prompts a list with possible internet connections available.

    How do i set this off (without asking me what kind of connection i want). My app is self signed.


    Greetz
    Franky

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    290

    Re: Internet Conn asks me what kind of connection i want

    Hi,

    i added some lines of code....


    Code:
    TInt iapID = 4;

    and...

    Code:
      ...
    
      SockAddr.Input( SrvName->Des() );
      SockAddr.SetPort( PortNum );
    
    
      
    
      TCommDbConnPref prefs; 
      prefs.SetIapId(iapID); 
      prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt); 
     
      conn.Open(SocketServer);
    				     
      conn.Start(prefs);
    
      
      ...
    
      Error = socket.Open( SocketServer, 
    					 KAfInet,
    					 KSockStream,
    					 KProtocolInetTcp, 
    					 conn);
    				     
          if ( Error != KErrNone)
    ...
    added code is bold. But the connection list prompts again.

    Greetz
    Franky

Similar Threads

  1. Setting up internet connection for emulator via WLAN
    By sakshi_sada in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-11-05, 07:58
  2. what if there is no internet connection
    By mauricesibrandi in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-04-09, 17:40
  3. Select Internet Connection Types
    By yiannis_1978 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-04-19, 14:44
  4. Internet connection via GPRS or LAN ?
    By anjanesh in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-04-11, 05:15
  5. Internet connection on the Series 60 MIDP SDK v1.0
    By sagee in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2003-07-17, 14:43

Posting Permissions

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