I am using Java to call some Native Code, the Native
 Code basically makes a non blocking connect call and
 establishes a Socket Connection. I am facing a few 
 problems though. 

 For one if 'connect' returns, errno (see man page for
 errno, if you don't know what I am talking about)
 does not hold EINPROGRESS. The same code works fine 
 when it is run stand-alone. 

 If I don't look for EINPROGRESS, it fails somewhere 
 else. At this point, the question in my mind is how do 
 I got about debugging the code when run through JNI. 
 Again the question is what can JNI do, is a non-blocking
 connect outside its scope? If that is true, then would
 there exist some way of doing a non-blocking connect in
 Java? I am sure I can set a SO_timeout on the read call
 but can I do the same for connect?
 
 Thanks in advance.  

 Regards,
 Santosh Dawara.
 http://cravelinux.cjb.net


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to