Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29918
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail |
|---|---|
| From | Josip Almasi <joe@vrspace.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java unix domain sockets ... or substitute (SOLVED) |
| Date | Fri, 05 Sep 2014 10:23:04 +0200 |
| Organization | B.net Hrvatska d.o.o. |
| Lines | 22 |
| Message-ID | <lubrt8$d1j$2@gregory.bnet.hr> (permalink) |
| References | <slrnm0ejqn.fp3.avl@login.logic.tuwien.ac.at> <slrnm0i2cm.fp3.avl@login.logic.tuwien.ac.at> |
| NNTP-Posting-Host | 109.60.125.237 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | gregory.bnet.hr 1409905384 13363 109.60.125.237 (5 Sep 2014 08:23:04 GMT) |
| X-Complaints-To | abuse@globalnet.hr |
| NNTP-Posting-Date | Fri, 5 Sep 2014 08:23:04 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
| In-Reply-To | <slrnm0i2cm.fp3.avl@login.logic.tuwien.ac.at> |
| Xref | csiph.com comp.lang.java.programmer:29918 |
Show key headers only | View raw
On 09/05/2014 02:53 AM, Andreas Leitgeb wrote: > Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> wrote: >> My current approach is to use named pipes intead, where the server >> blockingly reads on a "main" pipe (opened just like a plain file). >> >> Clients first create a new pair of named pipes, and pass the names to >> the server, who in response creates a new thread to communicate over >> those pipes and serve client's task that way. > > I've now settled on this approach. > >> This is somewhat awkward (especially cleaning up of stale named pipes), >> and named pipes do not prohibit two readers erroneously on the same pipe. > > I found a solution for keeping the number of stale pipes low enough. > The trick is to delete them as soon as they're opened by both sides. > If a process dies abruptly during its pay-work, then the pipes are > already cleaned up. Neat trick!:) Regards...
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
java unix domain sockets ... or substitute Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-03 17:26 +0000
Re: java unix domain sockets ... or substitute Wayne <nospam@all.invalid> - 2014-09-03 13:36 -0400
Re: java unix domain sockets ... or substitute Fredrik Jonson <fredrik@jonson.org> - 2014-09-04 07:42 +0000
Re: java unix domain sockets ... or substitute Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-04 07:52 +0000
Re: java unix domain sockets ... or substitute Josip Almasi <joe@vrspace.org> - 2014-09-04 09:45 +0200
Re: java unix domain sockets ... or substitute Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-04 09:14 +0000
Re: java unix domain sockets ... or substitute Josip Almasi <joe@vrspace.org> - 2014-09-05 10:20 +0200
Re: java unix domain sockets ... or substitute Fredrik Jonson <fredrik@jonson.org> - 2014-09-04 08:34 +0000
Re: java unix domain sockets ... or substitute Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-05 01:06 +0000
Re: java unix domain sockets ... or substitute Nigel Wade <nmw@ion.le.ac.uk> - 2014-09-04 11:35 +0100
Re: java unix domain sockets ... or substitute "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-04 15:11 +0100
Re: java unix domain sockets ... or substitute Nigel Wade <nmw@ion.le.ac.uk> - 2014-09-04 15:57 +0100
Re: java unix domain sockets ... or substitute "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-04 16:21 +0100
Re: java unix domain sockets ... or substitute Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-05 10:55 +0000
Re: java unix domain sockets ... or substitute (SOLVED) Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-09-05 00:53 +0000
Re: java unix domain sockets ... or substitute (SOLVED) Josip Almasi <joe@vrspace.org> - 2014-09-05 10:23 +0200
csiph-web