linux客户端与Windows服务器通信 [英] linux client communicate to windows server

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

问题描述

大家……我想知道我是否可以在Windows OS中安装csharp服务器,以便能够控制在Linux OS中安装的客户端计算机?如果是的话,如何做到这一点?我打算创建一个客户端应用程序,该客户端应用程序将安装在linux服务器中,而主服务器将安装在Windows OS中...是否有可能使用c#使2个不同的OS相互通信?我下载了此Monoproject,它具有与Windows中的Visual Studio相同的功能.它在linux中运行.所以我正计划创建我的Linux客户端应用程序...我可以在不使用数据库作为通信方式的情况下使这2个不同的OS相互通信吗?我的意思是他们可以仅通过数据包进行通信吗?

Hi guys... i was wondering is it possible if i have an csharp server that is installed in windows OS to be able to control the client computer that is installed in a linux OS? and if yes then how to accomplish this? i was planning on creating a client application that will be installed in a linux server and the main server will be installed in a windows OS... is it possible for 2 different os to communicate with each other using c#? i downloaded this Monoproject that has the same feature as the visual studio in windows. it runs in linux. so i was planning on creating my linux client application... can i make this 2 different OS communicate with each other without using database as a mode of communication? what i mean is they can communicate just through packets?

推荐答案

使用WCF进行此类通信,如果您拥有.Net,则可以使用TCP/IP. (.Net Mono)也可以在Linux上使用.
use WCF for this kind of communication, you will be able to use TCP/IP if you have .Net(.Net Mono) on linux also.


简短的答案是肯定的,您可以使用Framework中的所有计算机到计算机功能(TCP,UDP,Web服务).一个远程控制应用程序,您可能需要持久的TCP连接.
The short answer is yes, all the computer-to-computer capabilities in the Framework are available to you (TCP, UDP, web services. For a remote control app you probably want a persistent TCP connection.


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

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