V
V
voproser456542022-03-23 22:26:23
C++ / C#
voproser45654, 2022-03-23 22:26:23

How to use socket in gcc on windows?

How to use socket in gcc on windows? I know that it is on Linux gcc, but not on windows.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2022-03-23
@voproser45654

If you use cygwin for compilation, then you can use the Linux socket as well. It will be slightly less efficient due to the actual posix api emulation.
Well, or if you compile through visual studio, then use the winsocket API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question