异步套接字编程与远程处理 [英] Asynchronous socket programming vs. remoting

查看:68
本文介绍了异步套接字编程与远程处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个服务器应用程序,将图像发送到服务器域外$ / b $ b外的客户端GUI。

客户端将拥有文件系统图像的路径,但无法访问

文件系统。

我正在尝试决定是否应该使用远程处理而不是编写服务器

使用网络流。


我已经读过netstreams \tcp编程应该比

远程更快,并且是我正在做的更好的选择但是代码很困难




我想得到

1.关于远程对插槽的建议为我正在做的事情编程



2.如果建议使用套接字编程...

的完整样本的网址一个ansychronous server \client文件共享应用程序。


谢谢,

Michael Lindsey

I need to write a server app to send images to client GUIs that are outside
of the server''s domain.
The client will have the file system path to the image but can not access
the file system.
I am trying to decide if I should use remoting vs. writing a server that
uses networkstreams.

I have read that networkstreams\tcp programming should be faster than
remoting and is a better choice for what I am doing but that it is difficult
to code.

I''d like to get
1. a recommendation on remoting vs socket programming for what I''m doing
and
2. If socket programming is recommended ... the url of a full sample of
an ansychronous server\client file sharing application.

Thank you,
Michael Lindsey

推荐答案

你好迈克尔,


我不能给你一个关于什么是最好的解决方案的建议,因为我刚开始使用.NET。但我可以使用Delphi 8中编写的异步,给你一个客户端/

服务器的例子。你可以给我发电子邮件
wi ****** @ mestdagh.biz


rgds,Wilfried
http://www.mestdagh.biz
Hello Michael,

I cannot give you a recommandation on what is for your solution the best,
because I just started with .NET. But I can give you example of client /
server using TCP using asynchronous written in Delphi 8. You can email me on
wi******@mestdagh.biz

rgds, Wilfried
http://www.mestdagh.biz


Hello Michael,

我刚刚从另一个线程中选择了这个:Remoting是为了你想要什么时候执行代码,而是在另一个(''remote'')执行代码机器


所以我认为Remoting是一种中间件。所以我认为在你的情况下TCP是

的路要走。


rgds,Wilfried
http://www.mestdagh.biz
Hello Michael,

I just picked this up from another thread: "Remoting is for when you want to
execute code, but execute it on another (''remote'') machine"

So I think Remoting is a kind of Middleware. So I think in your case TCP is
the way to go.

rgds, Wilfried
http://www.mestdagh.biz


感谢您的回复。

我知道这两种技术是什么。我用

远程编写原型。

但是没有经验可以在两者之间做出选择。

我是寻找具有远程处理经验的人的建议

或使用tcp服务器获得类似的架构。


我真的很想听听专业人士

有经验的人可以选择两种方案。从理论的角度来看,我已经了解了两种

技术的优缺点。


谢谢,

Michael Lindsey

" Michael Lindsey" < MI ********** @ alltel.net>在消息中写道

新闻:FJ ************** @ fe39.usenetserver.com ...
Thanks for the replies.
I know what both technologies are. I have written a prototype using
remoting.
But don''t have the experience to choose between the two.
I''m looking for recommendations from someone who has experience in remoting
or using a tcp server for a similar architecture.

I''d really like to hears the pros and cons of both options from someone that
has the experience. I have read about the pros and cons for both
technologies from a theoretical perspective.

Thank You,
Michael Lindsey
"Michael Lindsey" <mi**********@alltel.net> wrote in message
news:FJ**************@fe39.usenetserver.com...
我需要写一个服务器应用程序将图像发送到服务器域外
的客户端GUI。
客户端将具有图像的文件系统路径,但无法访问文件系统。
我正在尝试决定是否应该使用远程处理而不是编写使用网络流的服务器。

我已经读过netstreams \tcp编程应该比
我想得到
1.关于远程处理的建议对于我正在做什么的套接字编程和
2.如果建议使用套接字编程...是一个完整示例
的ansychronous server \client文件共享应用程序的url。

谢谢你,
Michael Lindsey
I need to write a server app to send images to client GUIs that are outside of the server''s domain.
The client will have the file system path to the image but can not access
the file system.
I am trying to decide if I should use remoting vs. writing a server that
uses networkstreams.

I have read that networkstreams\tcp programming should be faster than
remoting and is a better choice for what I am doing but that it is difficult to code.

I''d like to get
1. a recommendation on remoting vs socket programming for what I''m doing and
2. If socket programming is recommended ... the url of a full sample of an ansychronous server\client file sharing application.

Thank you,
Michael Lindsey






这篇关于异步套接字编程与远程处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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