Re: Help Needed on ActiveX EXE winsock worker
- From: "Schmidt" <sss@xxxxxxxxx>
- Date: Tue, 26 Apr 2005 15:10:44 +0200
"J" <mailserv@xxxxxxxxx> schrieb im Newsbeitrag
news:7ef13fe.0504251726.bea349a@xxxxxxxxxxxxxxxxxxxxx
> "Schmidt" <sss@xxxxxxxxx> wrote in message
news:<uXU6hFaSFHA.2932@xxxxxxxxxxxxxxxxxxxx>...
> > "J" <mailserv@xxxxxxxxx> schrieb im Newsbeitrag
> > news:7ef13fe.0504250509.6ac11df1@xxxxxxxxxxxxxxxxxxxxx
> However, it would be of great help if you could elaborate more
> or even better if you could provide few lines of sample code on it.
I've looked at the Class you mentioned - it's not possible with a few lines
of code, to make this work in a multithreaded AX-Exe-Environment.
But if you want to make a stable, multithreaded server wich is getting jobs
over different client-sockets, your workers don't have to contain the
transport-layer (the sockets). Simply let the listening serversocket and all
the clientsockets in the main-thread, isolate the jobs from the incoming
socket-requests, pass the job-data to your worker-threads, async start the
jobs inside the workers and pass the results back to the main-thread to send
them back over the right client-socket.
Olaf
.
- Follow-Ups:
- References:
- Prev by Date: RE: COM Addin dll and HKEY_LOCAL_MACHINE
- Next by Date: Sending CTRL+Z to Modem
- Previous by thread: Re: Help Needed on ActiveX EXE winsock worker
- Next by thread: Re: Help Needed on ActiveX EXE winsock worker
- Index(es):
Relevant Pages
|