non blocking write on TCP/IP channel



Hello

I created a Socket and would like to write data without being
blocked ;
the method setSoTimeout allows to set a timeout for a read call
on the input stream associated with the socket but not for a write
call :
a write call on the output stream will block until the this write is
possible ;
is there a way to have a non blocking write ?

thanks in advance

Jean-Marie

.



Relevant Pages

  • Re: non blocking write on TCP/IP channel
    ... the method setSoTimeout allows to set a timeout for a read call ... on the input stream associated with the socket but not for a write ...
    (comp.lang.java.help)
  • Re: non blocking write on TCP/IP channel
    ... the method setSoTimeout allows to set a timeout for a read call ... on the input stream associated with the socket but not for a write ...
    (comp.lang.java.help)
  • Re: GetStream.Read behavior changed in .Net 2.0 with respect to ReceiveTimeout
    ... I only mentioned alternatives to implementing a timeout. ... Most socket i/o code does not bother with a timeout at all. ... Via a BeginXXX method you tell .NET to call a specific method when the i/o completes, and when it completes, your method is called. ...
    (microsoft.public.dotnet.framework)
  • Re: Socket recv() question?
    ... You might be doing something crazy, writing the data to the file one byte ... socket function correctly? ... The PC would send the data and Pocket PC would receive it. ... Configure tx timeout ...
    (microsoft.public.windowsce.app.development)
  • Re: Threads and socket.setdefaulttimeout
    ... settimeout on the socket) was because it seemed like the only way (and ... > their timeout period to allow other runnable threads to proceed. ... making the since-bad choice of using setdefaulttimeout to get timeouts ... code needs to check the lock to avoid conflict. ...
    (comp.lang.python)