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: magical callback funness: msg#00108

freedesktop.xcb

Subject: Re: magical callback funness


> I've run into a snag with record. It there's a request/reply called
> RecordGetContext. This gets the events recorded on the current
> connection.

When working with RECORD you use a context type. When having made one such
you can:

1 Query the state
-------------------
Done using the function XRecordGetContext

The request "RecordGetContext" is sent after the
function XRecordGetContext has been called

2 Start/stop recording
-------------------
Done using the function XRecordEnableContext/XRecordDisableContext

The request RecordEnableContext is sent after the
function XRecordEnableContext has been called

The request RecordDisableContext is sent after the
function XRecordDisableContext has been called


> However when calling the reply it enters a loop and prints
> out how no record was found for such and such an event.

Calling the reply? Can you please give some more info? Do you mean sending?

Can you show me your source code?

> The problem is
> that I can't get out of this loop to do other things like parse the
> information and what not.

Where is your code located? In the client or the server?


> Xlib seems to solve this problem by installing a callback (I'm not
> really sure how it works though). when enabling the context
> (RecordEnableContext).
This is right.

> I'm not sure how to solve this. Ideas, suggestions?
Show the sources :)

/h





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