[Xcb] Socket handoff: I know how to take the socket, but how do I give it back?

Antoine Latter aslatter at gmail.com
Thu Aug 18 08:37:38 PDT 2011


On Thu, Aug 18, 2011 at 9:46 AM, Josh Triplett <josh at joshtriplett.org> wrote:
> On Thu, Aug 18, 2011 at 07:30:03AM -0400, Peter Harris wrote:
>> On Wed, Aug 17, 2011 at 10:58 PM, Antoine Latter <aslatter at gmail.com> wrote:
>> > Hi XCB,
>> >
>> > I'm poking around at the handoff stuff in XCB, and I was wondering if
>> > there was a recommended way to give the socket back to libxcb after
>> > I've called xcb_take_socket.
>>
>> Call xcb_no_operation().
>>
>> It will waste a couple of bytes on the wire, but it will force XCB to
>> get the socket back for itself.
>
> We could pretty easily add a function to make XCB demand the socket back
> without actually sending anything over the wire, if that seems useful.

I'll start with the no_op request. If the project I'm working on goes
anywhere I can prod some more about this (or submit a patch).

Antoine


More information about the Xcb mailing list