Sockets: Difference between revisions

Content deleted Content added
mNo edit summary
m →‎{{header|C}}: in the description, nc "-p" for the port
Line 184: Line 184:
{{works with|gcc|4.2.2}}
{{works with|gcc|4.2.2}}


With little changes it could work on MS Windows (without Cygwin) too. But I don't know exactly how. I have tested it using <code>nc -l 256</code>.
With little changes it could work on MS Windows (without Cygwin) too. But I don't know exactly how. I have tested it using <code>nc -l -p 256</code>.


<lang c>#include <stdio.h>
<lang c>#include <stdio.h>