Ethereal-dev: [ethereal-dev] Re: [ethereal-users] Windows NT and update list in real time

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Mon, 8 May 2000 09:41:51 +0200
> ...and, unfortunately, making it use "CreateProcess()" on Win32 and
> having it pass file descriptors between the processes, etc., so that it
> works appears to be harder than I thought.

A quick and dirty version might be to put the fd (s?) in a global variable, 
create the process and guard all access to the file descriptor(s?) in both 
processes with BeginCriticalSection() and EndCriticalSection(). 

I once wrote a serial communication library with one instance of a C++ 
class controlling, and two processses reading or writing the ports. It 
worked quite well with the CriticalSection class guarding all access to 
the class.

-- 
Andreas Sikkema
andreas.sikkema@xxxxxxxxxxx
"Standing barefoot in a river of clues, most people would 
         not get their toes wet." - Brian Kantor in a.s.r.