Re: multi threading/tasking?

Tech-Archive recommends: Fix windows errors by optimizing your registry



TCP/IP I guess. I'm using Telnet to test the program. How does Telnet connect?


Paul wrote:
Christian Ehlscheid wrote:
Hi,

that not going to be easy with pure VFP code,
the problem is that VFP is single threaded.

A typical server application that can handle multiple connections at the same time normally has a main thread running which listens on a specified port and then spawns a new thread/ use a thread from a thread pool which will accept the connection request and handle it.

This cannot be programmed in pure VFP.

Not all servers work this way. There are plenty of (admittedly written in C) web servers that run as a single task.


Actually thinking about CJ problem it would probably be better/easier to use webservices. i.e. create a COM object in VFP and use IIS to handle the connections.

CJ: How will the clients be connecting? HTTP? Or are you using a proprietary protocol?

Any chance they're using XML to communicate? SOAP is really easy to handle in VFP...

.