[Rxtx] port in use exception

Andre-John Mas ajmas at sympatico.ca
Wed Sep 27 09:29:40 MDT 2006


Gregg Wonderly wrote:
>
> Well, serial data can flow slowly compared to what a program
> can generate. So, it should be possible for an application to
> open a port at 300baud, send some large amount of data and block
> on the close, waiting for the send to complete.
> 

Just thinking out loud: should the write() return before the
underlying OS written everything or wait until the the system has
finished sending all the data? What is the philosophy that is
used in the java.io classes with regards to this? Maintaining a
certain consistency with the approach used in java.io would avoid
unexpected surprises for developers used to a certain behaviour.

Andre




More information about the Rxtx mailing list