logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Foreign file descriptors: msg#00182

freedesktop.xcb

Subject: Re: Foreign file descriptors

On Wed, Sep 27, 2006 at 02:39:01PM +1000, Russell Shaw wrote:
> Hi,

Hi Russell!

> To monitor external file descriptors for things like receiving
> characters on a serial port, xlib doesn't seem to have any facility
> for that, so your application remains stuck in XNextEvent().
>
> Does xcb have a way around this?

No, that's outside XCB's scope. But with both Xlib and XCB, you can get
the file descriptor of the X connection and use select(2) or poll(2).
This is somewhat non-trivial to get right, though. I've been meaning to
work out what the application has to do to get this right, but haven't
gotten around to it yet.

Of course, what we actually recommend is using threads. That may be a
bad idea with Xlib, but XCB is designed to support threads
transparently.

--Jamey

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xcb mailing list
Xcb-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xcb



Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo