[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No message for 6 months



Rick,

> Am currently happily 'struggling' with a bit of JCSP. One thread reads
> from a socket and may be blocked and I want to be able to interrupt it
> cleanly. This is more difficult than I expected, so suggestions are
> welcome (JCSP gets upset if you interrupt your threads, and with some
> justification). Otherwise my bodge will have to suffice.

Why struggle with such low-level tasks - socket reads?!!

If you use Quickstone's JCSP, you get a networked channel model (that,
by default, runs over TCP/IP sockets).  So, a networked input channel
is just a channel and you can ALT over it.  End of problem.  :)

Peter.