关于客户端服务器架构 [英] Regarding client server architechture

查看:127
本文介绍了关于客户端服务器架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在机器上运行单个项目作为客户端服务器。



假设一台机器是服务器,其他客户端是客户端,我想在两个客户端上运行项目和服务器机器。



i通过C#编写应用程序,它们适用于单个用户



现在我想要为网络上使用并发的三个用户编写我的应用程序之一。

解决方案

可以在几个不同级别的网络,远程处理或WCF之一上完成。

请参阅我过去的解决方案中对这些方法的概述:

我如何将byte []发送到其他电脑 [ ^ ],

通信b / w局域网上的两个Windows应用程序。 [ ^ ]。



此外,您可能需要记住纯客户端-server( pull -only)是一个非常弱/有缺陷的模型。请参阅:

http://en.wikipedia.org/wiki/Pull_technology [< a href =http://en.wikipedia.org/wiki/Pull_technologytarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/Push_technology [ ^ ],

http://en.wikipedia.org/wiki/Client-server [ ^ ]。



我可能对你的目的没问题;我只是不知道,但是一般情况下的网络通常超出了客户端 - 服务器。无论如何,请查看我过去的答案以获得一些想法:

网站帐户的应用程序仪表板 [ ^ ],

套接字中的业余问题编程 [ ^ ],

来自同一端口号的多个客户端 [ ^ ]。



-SA

I want run a single project as client-server on machines.

suppose one machine is server others are client and i want to run project on that both client and server machines.

i write Application via C# and they are for single user

now i want to write one of the my application for three users that use it concurrency at network.

解决方案

It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

Also, you may need to keep in mind that pure client-server (pull-only) is a very weak/defective model. Please see:
http://en.wikipedia.org/wiki/Pull_technology[^],
http://en.wikipedia.org/wiki/Push_technology[^],
http://en.wikipedia.org/wiki/Client-server[^].

I might be fine for your purpose; I just don't know, but general-case networking often goes beyond client-server. Anyway, please see my past answers for some ideas:
Application 'dashboard' for website accounts[^],
an amateur question in socket programming[^],
Multple clients from same port Number[^].

—SA


这篇关于关于客户端服务器架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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