一样吧,应该接口都一样,内核的实现不一样。建议学Linux。
下面大概分几个方面进行罗列: Linux要包含 [cpp] #include #include #include #include 等头文件,而windows下则是包含 [cpp] #include 。 Linux中socket为整形,Windows中为一个SOCKET。 Linux中关闭socket为close,Windows中为closesocket。 ...
http://www.cnblogs.com/forcheryl/p/4345381.html