Article View: comp.windows.misc
Article #568Re: ICCCM & Properties
From: A.B. van Woerkom
Date: Wed, 24 Apr 1991 07:53
Date: Wed, 24 Apr 1991 07:53
34 lines
1883 bytes
1883 bytes
alex@hpgnd.grenoble.hp.com (Alexis MERMET-GRANDFILLES) writes: >2/ >I am trying to find out what is the best way to transfer quite a big >amount of Data ( Several KBytes ) between 2 X clients. >In fact, I am thinking of a X11 client which acts as a server for many >other clients. On the request of those clients, this 'server' >would send somehow some kind of data, from a few bytes to several KBytes >to the requesting client. >I was thinking of writing the complete buffer into a pre-defined root >window property, and then , sending a ClientMessage to the waiting client >to tell him the data is ready and where it is. >Does this sound feasable ? Sounds like reinventing the wheel. The Xt-intrinsics offer a set of functions that implement the so-called selection mechanism. Using this mechanism it is quite easy to transfer large amounts of data from one client to the other; when the amount meets a limit the intrinsics will handle the chopping in chunks for you. So, have a look at XtOwnSelection and friends. -- A.B. van Woerkom, adri@dutncp6.tudelft.nl Delft University of Technology, Faculty of Applied Physics, Physics Informatics Group, section Computational Physics, Lorentzweg 1, 2628 CJ DELFT, The Netherlands ________________________________________________________________________ "Unfortunately, the current generation of mail programs do not have checkers to see if the sender knows what he is talking about" (A.S. Tanenbaum)
Technical Details
Message-ID:
<adri.672479588@dutncp8>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!spool.mu.edu!uunet!mcsun!hp4nl!dutrun!dutncp8!adriReferences:
<2140001@hpgnd.grenoble.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!spool.mu.edu!uunet!mcsun!hp4nl!dutrun!dutncp8!adri From: adri@dutncp8.tudelft.nl (A.B. van Woerkom) Newsgroups: comp.windows.misc,comp.windows.x Subject: Re: ICCCM & Properties Message-ID: <adri.672479588@dutncp8> Date: 24 Apr 91 07:53:08 GMT References: <2140001@hpgnd.grenoble.hp.com> Sender: news@dutrun.UUCP Lines: 34