×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    2

    7650 StreamConnection

    I have some problems with openning StreamConnection on 7650 with V3.16 15-08-02 NHL-2NA firmware, but on the latest firmwares all runs ok. From all Java's midlets one,which open StreamConnection is TipicMe. I decompile it:

    public synchronized class m implements Runnable, g
    {
    ...
    public m(i I, String string1, String string2, int i)
    {
    g = I;
    c = string1;
    h = string2;
    f = true;
    new Thread(this).start();
    }

    public void run()
    {
    String string1 = "";
    try
    {
    Random random = new Random(System.currentTimeMillis());
    String string2 = System.currentTimeMillis() + "-" + random.nextLong(
    ) + "\n";
    string1 = "A";
    a = (StreamConnection)Connector.open("socket://" + h + ":4440");
    OutputStream outputStream = a.openOutputStream();
    g.a(20);
    string1 = "B";
    outputStream.write(0);
    outputStream.write(string2.getBytes());
    outputStream.flush();
    e = new com.loci.nokia.b(outputStream);
    g.a(30);
    string1 = "C";
    b = (StreamConnection)Connector.open("socket://" + h + ":4440");
    string1 = "D";
    outputStream = b.openOutputStream();
    g.a(50);
    byte b = 1;
    b = 2;
    string1 = "E";
    outputStream.write(b);
    outputStream.write(string2.getBytes());
    outputStream.flush();
    outputStream.close();
    string1 = "F";
    d = new a(this.b.openDataInputStream());
    g.a(60);
    }
    ...


    I'll try to reproduce it.... unfortunally, it won't work (it hangs on Connector.open).
    Anybody know, why StreamConnection on earliest firmwares won't open?
    PS. Connection established and some data wrote, when I close midlet.

    I use NDS 2.0 for Linux, Java 1.4.2-b28

    Thanks.

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    2

    ???

    nobody knows what the problem?

Posting Permissions

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