×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    3

    7210 sockets/environment variables? (please answer)

    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

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    but how enable ENABLE_CLDC_PROTOCOLS ???


    gicio

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    3
    err that's what I asked.

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    err = ERROR????


    gicio

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    3
    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.

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    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

Posting Permissions

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