- From: Fred Covely <fcovely@bcftech.com>
- Date: Fri, 29 Mar 2002 12:47:19 -0500 (EST)
- To: "Abhinav Rai" <arai@tibco.com>, <www-lib@w3.org>
We did that by using a queue to feed stuff to a libwww server thread. Here are the basic steps to create the windows messagine needed: 1. Declare a new window proc 'mywinproc' 2. Create a window via CreateWindow with the mywinproc as the winproc 3. Replace the libwww dispatch window handle with your new window handle using 'SetWindowLong' from win32 and HTEventList_getWinHandle() from libwww. 4. put appropriate logic in your new winproc to handle custom messages from your client threads (WM_ENQ) and pass the rest of the WM messages to the original libwww winproc It works really, well, blazingly fast and no thread conflicts. thx fhc Fred Covely BCF Technology fcovely@bcftech.com (B)760-631-8157 (C)760-717-9689 -----Original Message----- From: www-lib-request@w3.org [mailto:www-lib-request@w3.org]On Behalf Of Abhinav Rai Sent: Thursday, March 28, 2002 8:58 PM To: www-lib@w3.org Subject: Multithreaded post I have a requirement to asynchronously send post request and recevie the replies. Right now I am having a thread pool where each thread send a post request and waits for reply. the problem with libwww is that the pseudo threads allow me to send multiple requests but they require me to do HTEventList_loop, which blocks not allowing further requests to be sent. I want to keep on sending requests and asynchronously receive response. does anybody have a nice solution to this problem?
Received on Tuesday, 2 April 2002 02:47:29 UTC