Mike thanks for the reply. I don't call WSAEventSelect() once for all events because I don't want to be notified non-stop that the socket is ready for writing. I only need to send four messages to...
I have a non-blocking socket and I'm working with event objects. I'm on the client side. I'm implementing a hand-shake protocol. It's fairly straightforward, I connect to the server, I send...
Thanks to both of you. Igor, altough Arjay hit the mark I must admit that your post is insightful :)
In this case 1) is there a way for my DLL to invoke a function implemented in the user...
Is there a way (win32 api, shell command to imitate selecting files and sending it to a zip folder, whatever) to create a zip folder and adding files to it, programmatically?
What is it you are attempting to do?
Nothing very fancy, I'm afraid. I want to do something like WSAWaitForMultipleEvents() (with infinite timeout) Win32 API call sort of trick with select(). I want...
Hi All
I want to use select() socket function with NULL timeout so that it will wait indefinitely. In such case, is there a way to make select() return? Can I add two file descriptors to select,...
Thanks ovidiucucu (could not login for two days!). _MSC_VER is the way to go. Not really important but what's the point of this pragma compiler directive anyway...
The documentation says that
#pragma comment (compiler)places the name and version number of the compiler in object file. Is there a way to retrieve this information programmatically from my...
1) I'm not asking how to block if the buffer is full. I'm saying that I can think of two ways to communicate with the producer thread. a) If Producer_fn returns buffer-full, then the producer thread...
Thanks for all the input. I've already stated that I was in favor of using events instead of polling, no argument there. But please consider the following code:
Thanks Codeplug, I guess you want to tell me that I should look closer or deeper inside my code to get to the bottom of this, and you are probably right. Maybe I'm not polling frequent enough to see...
Thanks Arjay, your idea might have worked but rereading my own post I've seen that I might have mislead you, or any other members who have read my post. My apologies.
For practical purposes I can say that my program has a producer thread and a consumer thread. The producer thread writes data to a circular buffer, and the consumer thread reads data from...
Come on guys, is this so difficult? Or easy? I'm ready to take the blow, if I do something extremely unintelligent or the answer is easy to the point of silliness, please feel free to say it in your...
Intellisense woks for Win32 API, CRT functions, and my own functions within the project. I cannot get it work for functions I export from a DLL of mine. I can write wrapper functions for my DLL...
Hi all
I am using Visual Studio 2003, and coding in plain C. Upgrading to another version of Visual Studio, or changing the programming language is not an option for the moment. Sorry if this has...