You have two options:
Cygwin: lets you compile your Unix sources mostly untouched, but ties you to the Cygwin emulation library. This have two implications: general performance -no only network- will probably be less than optimal; and the target environment must have (at run time) the Cygwin DLL installed.
Winsock: this requires you to replace sys/socket.h
(BSD sockets library, UNIX standard for the TCP/IP stack) with winsock2.h
, and rewrite some parts of the code – not much, but some.
Some related questions with valuable info:
Differences between winsock and BSD socket implementations
Some Issues About Cygwin[Linux in Windows] (socket,thread,other programming and shell issues)
Related Posts:
- how to open an mp3 file with c
- How do you clear the console screen in C?
- How can I do GUI programming in C?
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- How do I install and use cURL on Windows?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- C compiler for Windows?
- Setting Windows PowerShell environment variables
- How to run a PowerShell script
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- How to go from fopen to fopen_s
- How can I open a cmd window in a specific location?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Cannot assign requested address – possible causes?
- Connect: Socket operation on non-socket
- Connect: Socket operation on non-socket
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- connect Error: “No route to host”
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- What languages are Windows, Mac OS X and Linux written in?
- Program received signal SIGPIPE, Broken pipe
- How to run a makefile in Windows?
- git clone: Authentication failed for
- How to compile LEX/YACC files on Windows?
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Verify return code: 20 when testing OpenSSL
- Understanding INADDR_ANY for socket programming
- Command ‘ls’ not working in command prompt
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- openssh windows bad owner or permissions
- Windows Activator .bat Text
- How To Activate Windows 10
- how to edit or see the source code for dll files
- What is the difference between Cygwin and MinGW?
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- What can cause a “Resource temporarily unavailable” on sock send() command
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Can’t start hostednetwork
- What is the ASCII Code of ½?
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- Bind failed: Address already in use
- What is Windows Fabric and how to host services in it?
- npm ERR! No git binary found in $PATH
- Python not working in the command line of git bash
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- SVN admin management GUI tool
- Setting up a cron job in Windows
- cat not recognised as an internal or external command
- While loop in batch
- Is there a good Valgrind substitute for Windows?
- Where to find the complete definition of off_t type?
- Making a countdown timer in C++
- Bridged networking not working in Virtualbox under Windows 10
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- What exactly is the scope of Access Violation ‘0xc0000005’?
- What does /p mean in set /p?
- Why do fonts appear jagged in Chrome?
- How do I get the current username in Windows PowerShell?
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- What is the source of the data for the ProgramFiles, ProgramW6432Dir, ProgramFilesDir (x86), CommonProgramFiles environment variables?
- batch file from scheduled task returns code 2147942401
- How to split large text file in windows?
- CALL command vs. START with /WAIT option
- BAT file to map to network drive without running as admin
- mysql community server vs mysql installer
- Aliases in Windows command prompt
- What is a Windows Handle?
- how to open Jupyter notebook in chrome on windows
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Difference between $? and $LastExitCode in PowerShell
- How to use/install GNU binutils (objdump)
- How to use random in BATCH script?
- Reasoning behind C sockets sockaddr and sockaddr_storage
- Can I get Unix’s pthread.h to compile in Windows?
- The requested operation cannot be performed on a file with a user-mapped section open
- “NODE_ENV” is not recognized as an internal or external command, operable command or batch file
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- Unable to start MySQL server
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- How to compile C program on command line using MinGW?
- Best practice for exiting batch file?
- how to empty recyclebin through command prompt?
- You require permission from “Myself” to delete folder – how to fix