The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
231 views

Should I use events or abstract methods?

Lets say I create an abstract class that manages some network functionality for me. I want to be able to be notified when something changes. For example: OnConnect or OnDisconnect. Should I create ...
0
votes
0answers
26 views

Structure of Input Events [closed]

I know there are KeyListeners, MouseListeners, and AnyListeners everywhere. However, that is on the higher level. I want to know what the base of it all is. The lowest-level you can get ...
1
vote
2answers
139 views

How to write a custom EventHandler class

When I started using Java, I created a custom Event class to mimic C#'s implementation of Events. Since then, I've added some other features, like event listener priorities, and cascading events were ...
0
votes
1answer
103 views

Detect or Prevent Screen Capture Applications

I am building an app that displays very sensitive information and as such, I want to be able to either Disable the ability to capture the screen Redact the portion of my app that is on the screen ...
5
votes
2answers
270 views

Should the sender of an event always be a generic Object?

When programming events in C#, it is advised to create a delegate in form of: delegate XEventHandler(object sender, XEventArgs e); My question is on the first argument of the delegate, object ...
1
vote
1answer
69 views

How is Nginx handling its requests in terms of tasks or threading?

Recently I read up on Wikipedia about Nginx. What puzzled me was this paragraph: Nginx uses an asynchronous event-driven approach to handling requests, instead of the Apache HTTP Server model that ...
0
votes
1answer
102 views

How does a clicked event work at a low level?

Specifically in regard to a drag and drop operation, how does a button, text box or whatever know that it has been clicked (or vice versa how does the display manager know what it clicked). I read ...
2
votes
1answer
94 views

will having an event with subscribers prevent an object from being GC'ed?

I have an object, which has an event which in turn has subscribers. I know that the subscribing objects won't get GC'ed since the delegate they stored for the event is connected to them, thus keeping ...
3
votes
2answers
159 views

Combining asynchronous and synchronous programming

I've got trouble wrapping my head around a certain problem: In my data-flow app (a visual editor), I have both autonomous objects which communicate though ports via unordered simultaneous messages ...
0
votes
2answers
113 views

Should event listeners be held in weak references?

Usually event listeners shouldn't outlive object that registered them. Does it mean that event listeners should be held by weak references by default (stored in weak collections by the object ...
1
vote
2answers
709 views

Testing C# Eventhandler Subscription

I want my unit tests to be able to verify that some events were subscribed or unsubscribed at specific points. Currently, I see two options. VerifiableEventHandler Each client subscribes using the ...
0
votes
1answer
120 views

How to determine if a message should be a command message or event message?

Two enterprise integration patterns are the command message and the event message. I am working on a system in which we use messaging not only for integration with other systems, but for internal ...
0
votes
0answers
46 views

Event and Objects

I have an array of objects. Instead of me when performing a task asking every object If they have anything to say about that, I would rather like the following: Perform Task Object #4 Hey, I have ...
0
votes
1answer
470 views

Good practice using signals and event driven system

I am using signals (specifically Boost signals2) to create an event driven protocol API and model. Most elements have their own signals, and there are usually multiple of each element. Consider a ...
3
votes
2answers
1k views

Event-driven vs. 'reference'-driven programming (i.e. in JavaScript)

I haven't been able to find the appropriate terminology to search for content on the web related to what I'm asking, so I'm hoping someone on here can at least point me in the right direction. I'm a ...
3
votes
1answer
562 views

Root cause analysis in event correlation

I'm to write an event correlator module for the device we produce. When a fault occurs the resulting avalanche of logs about derivative conditions from various modules is readable only to a person ...
0
votes
2answers
415 views

Access functions from user control without events?

On some generic functions, it seems that accessing a function on mainform directly from the usercontrol is easier than raising an event. For example: A function on main form that displays one desired ...
7
votes
6answers
2k views

Triggering custom events in AJAX callbacks

I'm pretty new to JavaScript, but one of the things that's been frustrating is that our AJAX callbacks have been getting packed with different functionality, making it difficult to keep everything ...
0
votes
2answers
802 views

How are interrupts implemented in practice? [closed]

Consider an USB device that is receiving data over a wireless network and an application running on the PC is reading this data. Now, on many languages (consider C# DataReceived), we have event ...