vb.net&之间的套接字编程linux [英] Socket programming between vb.net & linux
问题描述
大家好,
我需要编写一个程序来实时发送股市数据.我在运行Windows的本地PC上获取数据.我必须将该数据传输到我的Linux网络服务器(支持mysql和php).这样我的vb.net前端应用程序可以获取该数据.
运行Windows的本地PC -----> Linux Web服务器< ----->用户PC中的vb.net应用
我的vb.net应用程序可以像我想要的那样向该公司请求数据,以及x的数据量.服务器应该发送该数据.
为了实现这一目标,我该怎么办?
帮助将不胜感激.
谢谢,
Jack
Hi guys,
I need to write a program which sends stock market data at real time. I get data on a local pc running windows. I have to transmit that data to my linux webserver (which supports mysql & php). So that my vb.net front end app can get that data.
Local PC running windows -----> Linux web server <-----> vb.net app in user''s pc
My vb.net app can request data like I want for this company and x amount of data. And the server should send that data.
In order to achieve the goal, what should I do?
Help will be appreciated.
Thanks,
Jack
推荐答案
这是完全有可能的,但是要使其变得非常容易,我建议您在Linux上使用Mono( ^ ]).
当然,您可以在没有Mono的情况下做到这一点,但会花费大量时间来映射所有数据类型,并预留了进行远程处理的可能性.使用Mono,您可以在Windows和Linux之间共享代码的任何部分.在Windows上开发的项目将在Linux上运行而无需重新编译(如果您使用标准库集以及许多非标准但兼容的库,甚至System.Windows.Forms
).我知道是因为我在Linux上运行Windows .NET应用程序.
我针对其他网络问题发布的说明也将适用.请参阅:来自相同端口号的多个客户端 [ ^ ].
(作为附带条件,请参阅我有关线程的建议的集合,这对服务器端和客户端都有帮助): ^ ].请忽略以下事实:这些指示与某些非常不同的应用程序相关-大多数都非常适合您的情况.
祝你好运,
—SA
This is quite possible, but to make it really easy I would suggest you use Mono on Linux (http://en.wikipedia.org/wiki/Mono_(software)[^]).
You can do it without Mono, of course, but will spend considerable amount of time for mapping all data types, set aside possibility to do remoting. With Mono, you can share any part of you code between Windows and Linux. Projects developed on Windows will run on Linux without re-compilation (if you use standard set of libraries plus a lot of non-standard but compatible, evenSystem.Windows.Forms
). I know because I run my Windows .NET applications on Linux.
My instructions I posted in response to other Question on networking will also apply. Please see: Multple clients from same port Number[^].
(As a side dish, please see a collection of my advices on threading which are helpful on both server and client sides): How to get a keydown event to operate on a different thread in vb.net[^]. Please ignore the fact that those directions are related to some very different applications — most of them are quite applicable to your situations.
Good luck,
—SA
这篇关于vb.net&之间的套接字编程linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!