all groups > visual c libraries > december 2003 >
You're in the

visual c libraries

group:

Which mechanism is better?



Which mechanism is better? Mihajlo Cvetanovic
12/26/2003 6:34:38 PM
visual c libraries: Hi,

I have to create a dll with communication functionality.

The first idea was to implement only functions for sending, and user
to implement (and pass me a pointer to) function for receiving. Dll
would call those receiving events in internally created thread.

The other idea is mechanism from sockets. Dll has both sending and
receiving functions, and the user must poll occasionally for receiving.

Is there something wrong with first idea? Which one's better?

Thanks.
Re: Which mechanism is better? Bruno van Dooren
12/29/2003 9:14:04 AM
My personal preference is something like your second solution.
The reason is that this is much easier to debug and maintain.


kind regards,
Bruno.

[quoted text, click to view]

AddThis Social Bookmark Button