说明:本章是《Java网络编程》第十章,与第十一章服务器端套接字有密切的联系。
《Java网络编程》是O'Reilly精品图书,详细介绍在http://www.china-pub.com/computers/common/info.asp?id=3345。第二版和第三版的英文版已经上传到毕业设计的公共信息jstvu2005@163.com,请注意查收。
1 A socket is a connection between two hosts. It can perform seven basic operations:
• Connect to a remote machine
• Send data
• Receive data
• Close a connection
• Bind to a port
• Listen for incoming data
• Accept connections from remote machines on the bound port