[fpc-devel] Unix sockets for Windows
    Michael Van Canneyt 
    michael at freepascal.org
       
    Fri May  5 22:03:43 CEST 2006
    
    
  
On Fri, 5 May 2006, Alexander Todorov wrote:
> Hello,
> I have an application that uses TCP sockets nut it is going to be
> changed with UNIX sockets.
> Can you point me to some easy and clean approach how to emulate UNIX
> sockets for Windows.
> The only thing I can think of is using named pipes and encapsulate the
> functionality in some class. Any other alternative are welcome.
What cygwin does is allocate a free TCP port and write the port parameters
in the "unix" socket file. You could try to emulate it like that. 
I would be interested in seeing such an emulation.
Named pipes don't support several distinct clients, AFAIK.
Michael.
    
    
More information about the fpc-devel
mailing list