Original link: http://zhidao.baidu.com/link?url=16TEzhom2Nr8x1_ 2utrp-e2pgzrgs5nw5ywtrx2xlhbtlog8btif5dtyp85jftomj4qjkzxqlb-8x4avmz7rp7skelvdwfkbqyei4erdbji
Socket is the original socket development interface in Winsock Api,c++/java they are the language of development, and the socket is a communication standard abbreviation.
First, the 2 provides different interfaces (mainly in the form of encapsulation), and Java itself does not carry the socket at the bottom of the implementation, but by invoking the system's underlying Winsock API two times encapsulation,
The socket of A/C + + can be understood to be closer to the system level of Winsock, so the socket of a/C + + can provide more underlying expansion and control.
Second, in terms of language, the socket program that is opened with Java can run on any supported Java virtual machine without modifying any code. However, C + + should be modified according to the system characteristics.
What is the difference between JAVA socket programming and C + + socket programming