What is the difference between JAVA socket programming and C + + socket programming

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.