Zhiyong Weng wrote:
Hi,
Hi,
<snip>
Do i need force thread to sleep for few seconds to wait for handshaking
finish?
No. The handshake is synchronous. When the handshake is done, you are
using SSL.
My question is how to detect a SSL handshaking event?
The startHandshake() method will return when the handshake is completed.
The best is simply to rely on the sun documentation :
http://java.sun.com/j2se/1.5.0/docs/api/javax/net/ssl/SSLSocket.html#startHandshake()
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org