I'm reading <<Understanding Linux Network internals>>
,but not sure how much of it will also apply to windows?
views:
41answers:
1
+1
A:
I think you will find that they are very similar as both are based on the standard Berkley sockets API. Assuming you are programming in C here, you'll see the same sorts of functions with similar usage in both windows and unix (listen, accept, bind, etc).
There are of course many windows-specific socket functions though, mostly for things like async IO. Here's a list of the Windows socket functions so you can have a look for yourself.
Eric Petroelje
2010-05-26 13:37:26
In your link I saw `winsock` and `winsock2`,what's the main difference and which one should we use now?
2010-05-26 13:41:44
winsock2 is just the current version of winsock. It's backwards-compatible with the original winsock, but just adds additional functions and behavior (mostly for dealing with protocols other than TCP/IP)
Eric Petroelje
2010-05-26 13:57:55