有谁知道免费或低于50美元的C#服务器库吗? [英] Does anyone know of a C# Server Base that is either free or under 50$

查看:54
本文介绍了有谁知道免费或低于50美元的C#服务器库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道免费的或低于50美元的C#Server Base,它使用窗口的窗体界面,使用套接字,易于学习和开放源代码吗?

Does anyone know of a C# Server Base that is either free or under 50$ that uses a window''s forms interface, uses sockets, that is easy to learn, and open source?

推荐答案

使用窗口的表单界面,使用易于学习的套接字以及开放源代码?
that uses a window''s forms interface, uses sockets, that is easy to learn, and open source?


是的,使用单独的线程每个用户都是愚蠢的.我遇到了一个整个网络社区,这些社区的人们根据对线程的负面经验进行反线程宣传,因为他们都像那样愚蠢.任何技术都可能以最具破坏性的方式被滥用.线程数可以是固定的或可配置的,一个线程可为多个用户服务.但是性能不仅取决于用户数量,还取决于每个用户需要多少数据交换.无论如何,200个已连接的用户看起来是一个相当适中的数字.

好吧,是的,制作这样的通用引擎很有意义.可以抽象出处理数据的逻辑,使用泛型表示数据类型.似乎并不困难.

但是,您没有发现这样的东西并不令我感到惊讶.我很难想象谁会这样做,为什么.也许,对于一篇解释这些技术的文章,但是我不赞成这种事情.抱歉,对我而言,仅进行文章工作似乎微不足道.

因此,我只能建议您自己完成这项工作.我不知道您可能需要哪种帮助,但是-请提出问题.首先,请在这里查看我过去的解决方案:
来自同一端口号的多个客户端 [通过服务器触发的自动更新程序 [
Yes, using a separate thread for each user is plain stupid. I came across a whole network community of people who do anti-thread propaganda based on their negative experience with threads because they all did something as idiotic as that. Any technology could be misused in most destructive ways. Number of threads can be fixed or configurable, one thread serving several users. But performance depends not just on the number of users but more on how much of data exchange is required for each. Anyway, 200 connected users looks like a pretty modest number.

Well, yes, making such generic engine makes perfect sense. Logic of processing data can be abstracted out, data types presented using generics. It does not even seem difficult.

However, it does not surprise me that you did not find such thing. I can hardly imagine who would do it and why. Maybe, for an article explaining the techniques, but I would not right such thing. It looks a bit too trivial to me to do such job just for article, sorry.

So… I only can advise you to do this job by yourself. I don''t know what kind of help you might need, but — ask question. For a start, look at my past solutions here:
Multple clients from same port Number[^],
automatic updater triggered via server[^].

Good luck,
—SA


这篇关于有谁知道免费或低于50美元的C#服务器库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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