基于请求响应的TCP服务器 [英] Request response based TCP server

查看:98
本文介绍了基于请求响应的TCP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经为交易者开发了tcp服务器和客户端,以查看印度市场的实时汇率. (有点像 http://www.interactivebrokers.com/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 http://www.interactivebrokers.com/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.org/ [ ^ ]).在OPC中,服务器将具有所有项目的列表,并且客户端可以订阅他们想要的任何项目.客户端将仅获取订阅项目的更新.您应该能够为服务器/客户端实现与此类似的功能.
You probably are looking at something similar to OPC (http://www.opcfoundation.org/[^]). 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服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆