thor918
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
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!
ASKER
never mind that error.it was a newbie mistake
ASKER
sorted out problems.sockets works greate :)
ASKER
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 :)