摘要
利用Java多线程以及线程间通信技术实现TCP/IP异步通信存在耦合度较高、模块可重用性低等弱点,采用中介者设计模式进行改进并设计TCP/IP客户端异步通信框架。在家畜养殖智能监控系统的通信模块中对该通信框架进行了验证。结果表明,采用该框架设计的通信模块响应及时、性能稳定。
In order to improve the user experience and robustness of the procedure ,after Android 2 .3 ,the networking code should not be executes on a child threa ,the developers need to combine multithread technique to realize network communication .This paper studied the way to implement TCP/IP asynchronous communication way with the Java multi-threading and communications between threads ,meanwhile to improve and design the client framework for asynchronous communication inorder to overcome the problems like module coupling is higher and the reusability is low .This framework has been implemented in the development of communication module of the livestock intelligent monitoring system w hich is verified that the communication module works timely and stability .
出处
《软件导刊》
2014年第10期115-118,共4页
Software Guide
基金
江苏省工业和信息产业转型升级专项引导资金项目(KA12217019)