[Top][All Lists]

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

Re: How to use libports notifications

From: olafBuddenhagen
Subject: Re: How to use libports notifications
Date: Wed, 7 Apr 2010 03:35:55 +0200
User-agent: Mutt/1.5.19 (2009-01-05)


On Wed, Mar 31, 2010 at 04:50:51PM +0300, Sergiu Ivanov wrote:

> I want to teach nsmux to listen to the ``dead name'' notifications on
> proxy ports pointing to anonymous translators.  In less specific
> words, I have a port to a translator and I want to know when the
> translator has gone away.
> Several people (Fredrik and Thomas) mentioned that I could achieve
> this using some special libports' notification interface.

For the curious ones: after some further groping, we arrived at the
conclusion that libports is neither meant nor suitable in any way to
deal with ports we only hold the client end of; and so the libports
notification handling is meaningless here.

To listen for client-side notifications, we need an own handler --
either in a distinct server loop in an extra thread (like in boot for
example); or diverting the client-side notifications out of the main
server loop by means of major hackery...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]