Solved

BSDiff port to windows (problems with fork())

Posted on 2003-11-02
8
772 Views
Last Modified: 2008-03-17
I want to port this source to windows, but as code is not exactly windows programmer
friendy and i am not some *nix guru i have problems converting it to msvc++. I fixed
code to the point where only fork() and pipe() are making me problems. I could redisign
whole source but i am not quite confortable with it. Can anyone help me? CYGWin is not an option!

http://www.daemonology.net/bsdiff
0
Comment
Question by:Spodletela
  • 3
8 Comments
 

Author Comment

by:Spodletela
Comment Utility
Oh and one more thing; i want to make clear port without CYGWIN!!!
0
 
LVL 1

Accepted Solution

by:
Dudi earned 500 total points
Comment Utility
For Fork() you can use CreateThread, the API is pretty elegant and should be easier to port with.

See this:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_port_from_unix_to_win32.asp

To do pipes in Win32, look here:

http://www.codeproject.com/threads/anonpipe1.asp

Keep in mind that this example is for unnamed pipes.  For a good example of named pipes, look here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/interprocess_communications.asp

A nice C++ wrapper for Win32 pipes:
http://www.codeguru.com/system/NPW.html

Hope this helps!
0
 
LVL 1

Expert Comment

by:Dudi
Comment Utility
How do you post a closing recommendation?
What exactly is a closing recommendation?

Thanks!
0
 
LVL 20

Expert Comment

by:Venabili
Comment Utility
Dudi,

When a cleanup ping (or a Cleanup volunteer) appears and asks for closing recomemndations, this means they ask "Please tell us how do you think this question should be closed." Then when the Volunteer comes to post tthe real recommendation, they read the posted recommendations and in some cases they help to me taken the decision.

Venabili
0
 
LVL 1

Expert Comment

by:Dudi
Comment Utility
OK, thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now