Symbian
Symbian OS Library

FAQ-0509 Why does my console program fail to dial a PPP connection in the emulator?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Networking
Created: 07/27/2000 Modified: 09/11/2002
Number: FAQ-0509
Platform: Not Applicable

Question:
When I develop a TCP/IP client program in a text shell or console - eg using the C standard library (STDLIB) or using CConsoleBase, it refuses to complete the connection to the network. I have tested web within the full emulator, and it can access remote web servers fine.

My code also works fine on a target device.


Answer:
The problem lies in the difference between the text shells on the emulator and the Symbian OS device. On the emulator they lack the Eikon environment that the dial up software uses to display the 'Connect to Internet' dialog that confirms the settings it will use.

Therefore the solution is to first run the full emulator, and uncheck the Internet control panel option 'Show connection dialog' so that a connection can be established without any user interface being displayed.

(Obviously, you must also not use manual login, or a script that must display a terminal window)

Now when you use your text shell program, the connection will complete normally.