synchronous, asynchronous, blocking, and non-blocking

Source: Internet
Author: User

This is a recent need to implement a TCP-based protocol that is more complex to communicate with devices before the problem is not too clear

And then I saw this, and suddenly enlightened.

This is a TCP-related explanation for QT:

http://www.bogotobogo.com/Qt/Qt5_Asynchronous_QTcpServer_QThreadPool.php

http://blog.csdn.net/chenlong12580/article/details/7431864

http://blog.csdn.net/chenlong12580/article/details/9003139

QT serial communication, of course, there are blocking and non-blocking, call Waitforxx function will suspend the current caller thread, then blocked.

http://blog.csdn.net/chenlong12580/article/details/8976176

http://blog.csdn.net/chenlong12580/article/details/9003139

Note: If the main function does not enter the primary event loop of QT, then the CONNECT function will have no effect.

synchronous, asynchronous, blocking, and non-blocking

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.