基于请求响应的TCP服务器

编程入门 行业动态 更新时间:2024-10-18 18:17:02
本文介绍了基于请求响应的TCP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好, 我已经为交易者开发了tcp服务器和客户端,以查看印度市场的实时汇率. (有点像 www.interactivebrokers/en/p.php?f=tws) 我的应用程序将每只股票的实时报价数据发送给客户,但是一些用户想要获取特定4-5只股票的数据,但是我不想为其创建新内容. 是否可以像我们在Web服务中那样仅将请求的股票价格发布给特定客户,我们就能得到我们想要的. 请帮忙. Shailendra Kumar [电话号码已删除]

Hi there, I have developed tcp server and client for Trader to view live rates of Indian market. (somewhat like www.interactivebrokers/en/p.php?f=tws) My application sends Live tick data of each and every stocks to client but some of user want to get data of specific 4-5 stocks but i don''t want to create something new for it. Is it possible to publish only requested stock rates to specific client like we do in webservices we get what we ask for. Please help. Shailendra Kumar [phone number removed]

推荐答案

您可能正在寻找与OPC类似的内​​容( http ://www.opcfoundation/ [ ^ ]).在OPC中,服务器将具有所有项目的列表,并且客户端可以订阅他们想要的任何项目.客户端将仅获取订阅项目的更新.您应该能够为服务器/客户端实现与此类似的功能. You probably are looking at something similar to OPC (www.opcfoundation/[^]). In OPC, the server would have a list of all items and the clients can subscribe to what ever item they want. The client would get the updates only for the subscribed items. You should be able to implement something similar to this for your server/client.

更多推荐

基于请求响应的TCP服务器

本文发布于:2023-11-15 21:31:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598131.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   TCP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!