客户端/服务器应用程序

问题描述:

大家好,

我正在用C#开发我的第一个实际项目,我打算构建一个基于客户端/服务器的应用程序.由于安全原因,我不希望直接建立mysql服务器连接.

没有从C#客户端建立直接mysql连接,发送/接收数据的最佳解决方案是什么?

将c#客户端与带有SOAP的PHP Web服务器一起用于发送/接收所有数据,或者与套接字处理程序交换所有数据,是否可能/安全?什么是最好的方法,什么是最常见的方法?

最好的问候!

Hey guys,

I am developing my first real project in c# an i was planning to build a client/server based application. I would not prefer to make a direct mysql server connection due to security reasons.

What would be the best solution for send/recv of data without making a direct mysql connection from the c# client?

Would it be possible/safe to use the c# client against a PHP webserver with SOAP for send/recv all of the data or maybe exchange all of the data with socket handlers? What would be the best way to do this and what is the most common way?

Best regards!

可能会有所帮助,

WCF示例-简介 [ Wcf数据ado [ simple-wcf-chat-application-with [ ^ ]

:)
It might be helpful,

WCF by Example - Introduction[^]

Wcf data ado[^]

simple-wcf-chat-application-with[^]

:)


不太了解您的问题.如果您正在开发客户端服务器应用程序,则意味着您的客户端应用程序直接与服务器通信.在您的情况下,应用程序与数据库进行通信.

如果要在应用程序和数据库之间添加组件,那么您正在开发多层应用程序.

关于与Web服务器有关的问题,我个人将使用Windows Communication Foundation(WCF)来构建客户端可以调用的服务.但这只是一个意见.选择工具的一个因素是:您熟悉哪些语言,技术等并且使用起来很舒服.
Don''t quite understand your question. If you''re developing a client server application, it means that your client application communicates directly with the server. In your case application communicates with the database.

If you''re adding components between the application and the database you''re developing a multi-tier application.

As to the question concerning the web server, personally I would use Windows Communication Foundation (WCF) to build services that the client can call. But this is just an opinion. One factor in choosing the tools is: What languages, techniques etc you''re familiar with and feel comfortable to use.


阅读有关使用套接字进行客户端服务器通信的文章

客户端服务器通信 [
Read this article about client server communication using sockets

Client Server Communication[^]