vb.net&之间的套接字编程linux [英] Socket programming between vb.net & linux

查看:99
本文介绍了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(来自相同端口号的多个客户端 [ ^ ].

(作为附带条件,请参阅我有关线程的建议的集合,这对服务器端和客户端都有帮助):
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, even System.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&amp;之间的套接字编程linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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