Read-only archive of the All About Symbian forum (2001–2013) · About this archive

prnesock problems

0 replies · 1,361 views · Started 13 October 2004

I'm trying with Prnesock to make use of Internet through the Series 60
emulator. I'm using Symbian 6.1. My mmp file looks like this

TARGET Sockets.app
TARGETTYPE app
UID 0x100039CE 0x10005B78
TARGETPATH \system\apps\sockets

SOURCEPATH ..\src
SOURCE Sockets.cpp
SOURCE SocketsApplication.cpp
SOURCE SocketsAppView.cpp
SOURCE SocketsAppUi.cpp
SOURCE SocketsDocument.cpp

SOURCEPATH ..\engine
SOURCE socketswriter.cpp
SOURCE socketsreader.cpp
SOURCE timeouttimer.cpp
SOURCE socketsengine.cpp

SOURCEPATH ..\group
RESOURCE Sockets.rss

USERINCLUDE ..\inc

SYSTEMINCLUDE \epoc32\include

LIBRARY euser.lib
LIBRARY apparc.lib
LIBRARY cone.lib
LIBRARY eikcore.lib
LIBRARY avkon.lib
LIBRARY eikcoctl.lib
LIBRARY insock.lib
#if defined(WINS)
LIBRARY prnesock.lib
#else
LIBRARY esock.lib
#endif
LIBRARY eikctl.lib
LIBRARY aknnotify.lib

bldmake bldfiles, abld build wins and abld makefile vc6 works just fine, but
when running the SOCKETS example in the emulator and selecting to connect I
get "CSocketsEngine Conn. failed -2". What is the reason for this error? How
can I solve it?

This is the example that followed the SDK so I think that it definitely should work. Why doesn't it? (Running it on a Nokia 6600 phone just closes the app when it tries to connect)

If I'm not using the prnesock library I get error code -34, which is more
understandable - but still not good enough to understand what happened
(error: "Could not connect"😉.