You Are Here:

Community: Developer Discussion Boards

#1 Old 7210 sockets/environment variables? (please answer) - 2003-04-06, 16:32

Join Date: Apr 2003
Posts: 3
ms7821
Offline
Registered User
I know the functionality for sockets on a 7210 is available through CLDC, but creating a connection without an instance of com.sun.cldc.io.j2me.socket.Protocol is impossible, and I get a "Cannot access class in system package" error, or an IllegalAccessException whenever I try to instantiate it.

Doing it through the Connector class will work if I can enable the environment variable ENABLE_CLDC_PROTOCOLS, but I can't seem to do this on the emulator, and I don't even know if it exists on the phone.

Any ideas?

Thanks,
Mark Steward
Reply With Quote

#2 Old 2003-06-05, 01:02

Join Date: Apr 2003
Posts: 47
gicio
Offline
Registered User
but how enable ENABLE_CLDC_PROTOCOLS ???


gicio
Reply With Quote

#3 Old 2003-06-06, 00:27

Join Date: Apr 2003
Posts: 3
ms7821
Offline
Registered User
err that's what I asked.
Reply With Quote

#4 Old 2003-06-06, 02:10

Join Date: Apr 2003
Posts: 47
gicio
Offline
Registered User
err = ERROR????


gicio
Reply With Quote

#5 Old 2003-11-26, 15:42

Join Date: Apr 2003
Posts: 3
ms7821
Offline
Registered User
sigh.

Ahh well, everybody's saying that there's only one Nokia phone with support for sockets, so the solution must be to build a server-side HTTP wrapper.
Reply With Quote

#6 Old 2003-11-26, 15:58

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Quote:
so the solution must be to build a server-side HTTP wrapper
First of all, yes, that is the solution.
And second, just to make things clear. The ENABLE_CLDC_PROTOCOLS flag is a flag for the emulator, so it can know if it should let you run sockets or not. There is no flag like this on the phone. The phone either supports sockets or it doesn't (usual answer: it doesn't). On a 7210 socket functionality is not available.

shmoove
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia