can I listens to the same port in differernt threads on the same computer

Q1:can I listens to the same port in differernt threads on the same computer?Q2:if I use two thread to listen to two different port, you know, as the method for listening is a block method, will them block each other?Thank you very much!
[258 byte] By [XUETAOa] at [2007-10-2 6:45:19]
# 1
Answer for both questions No
LRMKa at 2007-7-16 13:53:57 > top of Java-index,Java Essentials,Java Programming...
# 2
Yeah,no.If you wanna get a port input,u can read the input into a media.And then,ues it through multiple threads.
zydgyy@vip.sina.coma at 2007-7-16 13:53:57 > top of Java-index,Java Essentials,Java Programming...
# 3

> Q1:can I listens to the same port in differernt

> threads on the same computer?

If you mean ServerSocket.accept(), the answer is yes.

> Q2:if I use two thread to listen to two different

> port, you know, as the method for listening is a

> block method, will them block each other?

No.

ejpa at 2007-7-16 13:53:57 > top of Java-index,Java Essentials,Java Programming...