Questions tagged [callback]
Callback is facility to save a piece of code so that it may be invoked later in the current environment (Typically in response to an event)
10 questions with no upvoted or accepted answers
4
votes
0
answers
935
views
Aysnc call back to UI Thread
My main DLL is a .Net one that has an async running method and fires an event when it's done:
...
3
votes
0
answers
58
views
Nisse Server: Part 5 Handler
Getting close to a release of generic server.
Nisse Server: Part 1 Helper Functions
Nisse Server: Part 2 Socket Layer
Nisse Server: Part 3 Stream Layer
Nisse Server: Part 4 Server
As I mentioned ...
3
votes
0
answers
279
views
Simple C++11 Subject-Observer
Building on the answer in C++ class member callback simple examples, I've tried to put together a simple subject-observer pattern without needing to inherit a virtual Observer class. I also wanted to ...
3
votes
0
answers
1k
views
C++ UDP server for a game
I broke my server into two classes, a general server class and a client session class.
I know the code isn't documented in the header, but I am more interested in the design of the server/session ...
3
votes
1
answer
204
views
TimeoutManager: check whether a task has been finished within a given time
I want to make a helper class, which raises an event whenever something is not finished in a certain time.
Example: my program sends out multiple network messages concurrently. After a random delay, ...
2
votes
0
answers
29
views
Customizable unidirectional questionaire in javascript
I wrote the below answer for the following question on SO a couple of days ago, and I was curious if the usage of the generator function is an acceptable one.
I choose the generator function, because ...
2
votes
0
answers
27
views
UI Event Flow class
Purpose:
I wanted a way to improve event clarity and event code organization. I
observed that every single event flow went through the following
steps:
Trigger -> UI Change -> (Async) ...
2
votes
0
answers
62
views
Controller to execute AJAX requests for a client
I have been developing this structure or pattern (I don't really know how to call it). It's my first time doing something like this, and I'm a bit worried about the future, if it becomes unmanageable.
...
2
votes
0
answers
601
views
Saving parsed CSV data to MongoDB
I wrote a script for reading a CSV, parsing it and saving data to MongoDB. I would love some input on how I'm handling errors and dealing with callbacks. I wrote it with nested without using async and ...
2
votes
1
answer
237
views
HMAC Middleware
I have been programming a middleware for my small application that verifies if an authentication header is present and verifies the HMAC present in it. I would like to know what I could optimize in ...