开发者

TCP/IP books for windows OS [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I've heard about these TCP/IP books which apparently seem to focus on TCP/IP in UNIX

TCP-Illustrated-Vol.1

TCP-Illustrated-Vol.2

Apart from the code introduced in these books, Are there any differences between TCP/IP implementation from w开发者_如何学Cindows?

If yes, Can you suggest some other TCP/IP books for windows platform?


Network Programming for Microsoft Windows is THE book. It's quite old, but that doesn't matter. It's not a simple subject, the book can be a bit dense and it's not a hand holding 'for dummies' book, but I've yet to find a better book on the subject.

Of course, you also probably want to have the two Stevens' books that you link to to hand as well as they're great for the platform independent stuff.

As for differences, well, Windows more or less implements the BSD socket API but also provides alternative APIs which are often more appropriate for the Windows platform. Things like overlapped I/O and IO Completion Ports are a much more sensible route to take on Windows if you are looking for scalability and server side coding. The BSD API is probably fine for simple servers and single threaded clients. If you need some example code for IO Completion Port based designs then I have some here.


I asked this question back in 2009. The actual TCP/IP protocol is simply that - a protocol. Under the hood, Unix and Windows implement TCP/IP in the same way; how else would they be able to talk to each other?

The difference, as Len said, is in the APIs. Windows implements the BSD API so you can do basic portable socket programming, but if you want something with higher performance, you have to delve into platform specifics, or use a third party library. I assume since you're asking this question, you want to learn this stuff for yourself.

I implemented a IO Completion Port based system, and while I can't share the exact code, I can point you towards some of the resources I learned from, such as this codeproject page, this MSDN article, and this one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜