摘要
socket适用于网络环境中的进程间通信,它已成为当前许多操作系统的网络API,也是网络操作系统中必不可少的基础功能。尽管UDP无法像TCP一样提供可靠的数据传输,但UDP并不比TCP缺乏优越性。随着Linux操作系统和Internet的不断发展,Linux网络环境下尤其是基于UDP的socket通信技术仍广为注目。文章介绍了Linux平台下的socket及其编程原理,并通过一个Java编写的基于UDP的客户/服务器程序,描述了网络中不同主机上的两个进程之间的socket通信机制。
Socket is suitable for communication between two processes from network. Now socket has been available network-API of many OS, at the same time it has been one necessary part of network-OS. Though UDP can,t provide reliable data transfer while TCP can, itfs still as superior as TCP. UDP-based socket communication technology on Linux network environment is still wide concerned with Linux OS and Internetfs developing. The paper introduces the socket and it,s programming principle on Linux. By using a UDP-based client/server program which is edited in Java, it describes socket communication mechanism between the two processes from the different computers in the network.
出处
《网络安全技术与应用》
2006年第1期63-66,共4页
Network Security Technology & Application