×

Discussion Board

Results 1 to 8 of 8

Thread: Sockets!!!!

  1. #1
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Sockets!!!!

    I was having success using the Connector class with URLs like "socket://ip-addrort" on all of the Sun device emulators, and the Nokia Series 40 emulator. Of course, on the 7210 emulator, it tells me that I can't access a system class. I've tried tricking it, by subclassing the systems classes in my own class, or creating my own classes in a system package (because they obviously can access system classes), but then the phone says "can't create class in system package". So far I'm out-smarted.

    I had assumed that sockets just weren't possible on such devices, and have started to build an HTTP based solution instead. But today I see a product (http://www.reqwireless.com/emailviewer.html) that apparently talks POP3, IMAP and SMTP on Java phones, including the 7210 (indeed, the whole Nokia range). I guess they might actually be diverting requests via their own webserver, but I kind of suspect that they might know something I don't.

    If they do, they have a competitive advantage. Which doesn't seem very fair. Won't Nokia tell us all how to do this!!!???!!

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    Nokia will not!!

    do you read my topic?


    http://discussion.forum.nokia.com/fo...threadid=22954





    gicio

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    EmailViewer.jad :


    MIDlet-1: EmailViewer, /e.png, EV
    MIDlet-Jar-Size: 49542
    MIDlet-Jar-URL: http://reqwireless.com/EmailViewer-1.5/EmailViewer.jar
    MIDlet-Name: EmailViewer
    MIDlet-Vendor: Reqwireless Inc.
    MIDlet-Version: 1.5
    MIDlet-Data-Size: 4096





    what is MIDlet-Version: 1.5 ?????

    I know MIDlet-Version: 1.0 and 2.0 but not 1.5!!!

    or they used the midledman solution???


    gicio

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    looks like midletman solution:


    Privacy Notice
    Reqwireless makes available public servers at http://ca.reqwireless.com:8080/Web, https://ca.reqwireless.com/Web, http://proxy1.reqwireless.com/Web/, https://proxy1.reqwireless.com/Web/, for use of ReqwirelessWeb, WebViewer, WebViewer Lite, ReqwirelessEmail, and EmailViewer. When a user of one of these products makes a request through one of these public servers, we log some information to help us in our future development of these products. For example, information about the capabilities of the devices using the ReqwirelessWeb service helps us to focus our testing efforts on those environments most common among our users.




    gicio

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    47
    any comments to this issue from Nokia team?



    gicio

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    24

    TCP / UDP

    Hi all
    I tried using Socket :// and also Datagram ://
    But i get

    javax.microedition.io.Connector
    java.lang.classNotFoundException
    com.symbian.midp.io.protocol.Datagram.protocol


    But i found that nokia support TCP /UDP support according to their documentation.

    Why is that http support given and its work fine ,but not TCP / UDP.

    Can any one give me some solution for Datagram and Socket over the 60 series phone.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    19
    As far as I know they stopped supporting socket connections since Symbian OS 3.16 or later for security purposes (e.g. I got a status = -18 Exception Msg, which means, that the Symbian TCP-Stack isn't ready, and after setting the boolean 'timeout' to false, I got a -33 (cancelled). These are error messages coming from Symbian). So to establish a socket connection one first has to flash his phone.
    :-((
    Honestly, I can't understand, why Nokia did not inform us about this. I really would like to know, whether Nokia is planning with sockets in the future or not and if so, which devices will be concerned.

  8. #8
    Registered User
    Join Date
    Jun 2003
    Posts
    24

    Http:

    Hi ,Firstly thanx for ur reply.
    Im still not getting Socket:.// (TCP) and Datagram://(UDP).

    I tried using HttpConnection class for http://www.yahoo.com.
    But the problem is , im able to get the requested page from emulator.
    But NOT from the 3650 phone.

    But i got this exception

    java.io.IOException status=-33

    and sometimes

    java.io.IOException status=-20019

    Could you please tell me what would be this and what does this status value means.

    and is it possible to connect to any http(URL) from 3650 phone using HttpConnection.

Posting Permissions

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