Xavier Palau

Greenhorn
+ Follow
since Oct 26, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Xavier Palau

I'm programming a MIDLet that is basically a peer2peer application. So, I use different threads for the client part and the server part and use HttpConnection and socket connections. It is actually working on the real device, but I have found two problems:
1 - I don't know how can I get:
a) from the socket (server part): the IP address of
the client that has requested a connection
b) from the client: its own IP address
2- Even when I only attend a client at the same time and close the socket, when I have attended 3 or 4 connections seems that this 2 methods get blocked simultaneusly:
a) notifier.acceptAndOpen() at server part
b) InputStream.read() at client part
the worse thing is that the threads get blocked for ever (no timeout).
Please, can you help me with any of the two problems?
22 years ago