how to use function fork() in Windows NT

Hello,

I need to make a gateway from Ethernet to RS-485. I am using stream socket, and I am programming in windows nt. I would like to know how could I use some functions from unix in windows nt. I would like to use the function fork(). Which library it uses and how can I get it? Can I substitute fork using CreateThread, or do I need to CreateProcess.

PS:I have to make a server that gets the data from ethernet port and write to Serial port. My server has to accept a lot of connection.

Please, could you help me.

Regards

Paulapaula

Sounds like you want to use P Threads... P thread is not supported in the NT Environment. You need to find the pthread libraries for WIN32. Web site is http://sources.redhat.com/pthreads-win32
There is a bunch of sample programs with it to help you out!!!