Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Migration from Unix to Windows

Posted on 2004-08-20
Medium Priority
Last Modified: 2010-04-15
I have a unix code that basically creates a Socket of Internet family (Socket type -Stream type). I need to convert this code to WIndows (VC 6.0). For this reason I need to change some of the header files existing in the Unix code.
What I need to know is the corresponding windows header files for these unix header files.
The Unix header files are
<signal.h> (makes use of Sigaction for a signal action>

If you know of some links that has such a mapping,I would really appreciate that.

Question by:Rahulsaxena
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 11854976
I guess  winsock and winsock2.h take care of the socket programming aspect. Do these files include code for Internet family sockets?
What about signals. Are they also taken care of in these header files??
Would you recommend using MFC classes to do socket Programming than the conventional Wiin32 style programming?

LVL 86

Accepted Solution

jkr earned 375 total points
ID: 11855388
>>What about signals. Are they also taken care of in these header files??

Signals work (partly), see signal.h on that, not all are supported. For a general overview, see

http://www.microsoft.com/windows2000/migrate/unix/customunix.asp ("How to Migrate Custom UNIX Applications to Windows")
http://www.microsoft.com/windowsserver2003/migrate/unix/unixproresources/unixdevilt.mspx ("Windows Concepts for UNIX Software Designers")
http://msdn.microsoft.com/library/en-us/dnucmg/html/ucmgch09.asp ("UNIX Application Migration Guide") <--!
LVL 86

Expert Comment

ID: 11856017
Um, thanx, but why in all the world a "C"?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

730 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