[Y-devel] Message over connection less protocol?

Maurice van der Pot griffon26 at kfk4ever.com
Thu Feb 26 17:45:12 GMT 2004


On Thu, Feb 26, 2004 at 05:44:45PM +0100, Peter Prohaska wrote:
> In the thesis, it is required to use a connection based stream protocol,
> if i got that right.
> Why should it not be possible to send i.e. an UDP request that just pops
> up a message window?

Unless you are going to implement your own acknowledgements/retransmits/etc,
you can't use UDP because the packets are not guaranteed to arrive... at all.

> It should be quite a compact message for Y.

You can do this with TCP no problem, but the question is "would you want to?"

> I.e. My coffee maschine could just send a message that it has finished
> directly to Y instead of having an extra client waiting for such
> messages just to forward them to Y.

Do you want anything or anyone to just be able to trigger popups on your 
machine? I suppose you want at least some control over who can trigger
them. I think putting that control outside of Y is a good thing. 
You want to avoid as much complexity as possible... if it does not
have a (big) negative impact on performance, keep it out of Y.

X allowed you to open up windows from a remote location in three ways:
- set DISPLAY and use xhost+
- use xauth (MIT-MAGIC-COOKIE)
- use ssh -X

You really want to avoid the first one. The second one is ok, but it's 
either cumbersome or you have to do some automation. The third one 
actually automates the second one and does everything over an ssh connection.

If you ask me, at least of these three the last one is the best solution.

Maurice.




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved