摘要
使用java语言在MyEclipse环境下,借助于Swing可视化界面的设计,完成了相邻计算机使用Socket进行通信。服务器套接字(ServerSocket)创建于指定的端口,通过ServerSocket的阻塞应答来监听客户端是否有连接请求,实现了局域网内简单的聊天功能。
JAVA is used in MyEclipse with the help of Swing visual interface design to complete adjacent computers' communication by using Socket.Server Socket is created on the assigned port through the ServerSocket obstruction to monitor the clients to see if they have request for connection,achieving LAN chatting feature.
出处
《长江工程职业技术学院学报》
CAS
2012年第4期35-37,共3页
Journal of Changjiang Institute of Technology