检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:刘黎志[1,2]
机构地区:[1]武汉工程大学智能机器人湖北省重点实验室,湖北武汉430205 [2]武汉工程大学计算机科学与工程学院,湖北武汉430205
出 处:《计算机工程与设计》2015年第10期2860-2865,共6页Computer Engineering and Design
摘 要:针对传统Web实时应用程序实现技术的不足,构建基于SingalR的Web实时应用程序框架。该框架能处理客户端单向数据请求、客户端业务逻辑执行或改变应用程序状态后通知到其它连接的客户端及主动将更新数据定时推送到所有连接客户端或特定客户端这3种场景。客户端通过由SingalR生成的本地Hub代理类调用服务端方法,结果通过SingalR路由上下文返回到客户端,服务端通过SingalR路由上下文以广播的方式调用客户端代码,实现服务端、客户端之间的全双工通讯。实验结果表明,该框架可以满足Web实时应用程序的业务需求。Aiming at shortages of the traditional technologies for Web real-time application,a framework based on SingalR was constructed,which could handle three real time scenarios.The first was the one way data requirement from client browsers,the second was that the server side sent update message to other clients after one client executing business logic or changing application state,the last was that the server side pushed data to all clients or specific client by timer interval.The client called server side method through local Hub Proxy,the result returned to client through the SingalR context.If the server side needed to call client side methods,it broadcasted the request to the client also through the SingalR context,so the full duplex communications from server side to client side was realized.The business requirement of the Web real-time application can be satisfied by the framework,which is verified by the realization.
关 键 词:Web实时程序 SingalR 网络套接字 路由上下文 线程安全
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.118.82.212