摘要
Socket是网络通信中的常用技术,有着广泛的应用前景和意义。本文首先给出了Socket含义,然后关注了Socket通信过程中的注意事项,Socket常用方法及多线程Socket通信,最后研究了套接字心跳机制,设计思路及其注意事项,Socket长连接及其常用步骤,为套接字的应用提供了理论和实践支持。
Socket is a common technology in network communication and has a wide prospect and significance in application.This paper first introduces the meaning of Socket,then pays attention to the precautions in the process of Socket communication,common Socket methods and multi-threaded Socket communication,and finally studies the Socket heartbeat mechanism,design ideas and precautions,Socket long connection and common steps,which provides theoretical and practical support for the application of Socket.
作者
徐洪丽
杨传栋
王秀丽
XU Hongli;YANG Chuandong;WANG Xiuli(College of Information Science and Engineering,Shandong Agricultural University,Tai'an,Shandong Province,271018 China)
出处
《科技创新导报》
2021年第27期105-107,共3页
Science and Technology Innovation Herald