客户端与客户端之间的同步地图使用C#的服务器 [英] Sync map between client & server using c#

查看:76
本文介绍了客户端与客户端之间的同步地图使用C#的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想在.Net上构建Windows程序,以了解以下想法.
我在公司局域网中有多台计算机.我将使用计算机来设置服务器,而其他计算机都是客户端计算机.我将构建一个程序,有两个版本要安装在服务器和客户端上.在我的服务器版本上,公司的配置图(jpg图像),客户端将收到它.当用户单击客户端位置上的地图时,服务器将在屏幕上显示确切位置,并为所有客户端同步服务器.有人可以
给我点子吗?谢谢

Hi all, I want to build a Windows program on the .Net for ideas below.
I have multiple computers in a corporate LAN. I will use a computer to set up the server and the others are client machine. I will build a program there are two versions to install on the server and client. On my server version I configuration map (jpg image) of the company and the client will receive it. When the user clicks on the map at the location of the client then the server will show the exact location on the screen and sync server for all clients. Someone can
give me ideas? Thanks

推荐答案

我不得不承认,我根本没有解决您的问题.

您应该看看WCF(Windows Communication Foundation),它可以简化客户端/服务器体系结构的开发.

原则上,您必须将地图作为图像发送给所有客户端(即,客户端要求服务器获取图像),然后客户端在单击时发送鼠标位置的x | y坐标,以便服务器可以处理这些信息,然后可能会将一些信息发送回去.
I''ve to admit, I didn''t get your problem at all.

You should have a look at WCF (Windows Communication Foundation), which simplifies the development of client/server architectures.

In principle, you have to send the map as image to all the clients (i.e. the clients ask the server to obtain the image) and the clients then send the x|y-coordinates of the mouse position when clicking, so the server can process these information and maybe send some pieces of information back.


这篇关于客户端与客户端之间的同步地图使用C#的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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