Link to home
Start Free TrialLog in
Avatar of thor918
thor918Flag for Norway

asked on

persistent connection in old jdk 1.1.8?

My idea is to have one server made in phyton and one client made in java.
is there any persistent connection code examples for the jdk 1.1.8?
That would be very cool!

so my main goal is when the client is connected.the client can post data whenever and the server can post data whenever.
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thor918

ASKER

good.I have been looking for some examples on socketserver,that works in jdk 1.1.8
I found one that seems to work. but that closes the socket once the data has been sent.I want to hold the connection open.
Examples wanted :)
Avatar of thor918

ASKER

http://zerioh.tripod.com/programming/sockets.html
works for me.but it don't work if I use the clientclass in another class.but I get

<identifier> expected

      client.run();

I use this in the other class
      Requester client = new Requester();
      client.run();

changes :
main method is removed
public class is class
run method is made public

anyone with some bright idea?
it compiles ok if I remove
client.run();
I just don't understand why it dosent work!
Avatar of thor918

ASKER

never mind that error.it was a newbie mistake
Avatar of thor918

ASKER

sorted out problems.sockets works greate :)