It is strange that you didn't find it. My Cygwin installation certainly has it. Sergey, he may have installed MinGW directly, without installing it through Cygwin. Do you need it? Windows defines a nearly identical API you can use instead. And if you need cross platform portability, libraries such as Boost.
Asio or ACE might be better options. Michael, he says "somewhere said to install Cygwin instead, as it comes with lots of libraries. Perhaps some devel package is missing? Cygwin is a really good thing for compiling native Unix applications for Windows, unless they use fork , which is buggy and will always be. Or maybe Qt.
It has good sockets support too. And these high-level libraries are easier to use than Berkley socket API anyway. Show 2 more comments. Active Oldest Votes. Improve this answer. Jeremy Friesner Jeremy Friesner Don't you need the windows version of closing socket too? And a couple more other things? Yes, under windows you need to call closesocket instead of close.
And probably other things also. Add a comment. Assuming that using a third party cross-platform sockets library is not an option for you Community Bot 1 1 1 silver badge. Download ZIP. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters Show hidden characters. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. All rights reserved. You may not use this file except in. Like Article. Recommended Articles.
Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most visited in GBlog.
0コメント