C#中的IRC库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1962075/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IRC library in C#
提问by ty.
I want to embed a small chat window in my program that will function as a basic IRC client. This requires limited functionality such as connecting, disconnecting, listing users, and sending private messages.
我想在我的程序中嵌入一个小的聊天窗口,作为一个基本的 IRC 客户端。这需要有限的功能,例如连接、断开连接、列出用户和发送私人消息。
As of writing, I have tried several bloated libraries that make it too difficult to create a simple application (wiring many events, handling things like channels, modes, etc. that I'm not interested in). Other libraries I've tried are developed for old versions of .NET and are full of deprecation warnings. How can I develop a lightweight IRC client in C#?
在撰写本文时,我尝试了几个臃肿的库,这些库使得创建一个简单的应用程序变得非常困难(连接许多事件,处理诸如通道、模式等我不感兴趣的事情)。我尝试过的其他库是为旧版本的 .NET 开发的,并且充满了弃用警告。如何在 C# 中开发轻量级 IRC 客户端?
采纳答案by Cory Petosky
Two years later, now there's ircdotnet(less up-to-date github mirror) which seems to work pretty well.
两年后,现在有了ircdotnet(不太更新的 github 镜像),它似乎工作得很好。
Should note that this does not yet (and will likely never) work for Windows 8 Metro-style (WinRT) apps.
应该注意,这对 Windows 8 Metro 风格 (WinRT) 应用程序尚不适用(并且可能永远不会)。
回答by Eduardo
I think the protocol is so simple you probably could do it yourself then. Really, I've tested some years ago using simply telnet! I'd get the source of some simple client and just implement the same commands.
我认为该协议非常简单,您可能可以自己完成。真的,几年前我已经使用简单的 telnet 进行了测试!我会得到一些简单客户端的源代码,然后执行相同的命令。
You can refer to: http://www.irchelp.org/irchelp/rfc/rfc.html
回答by Ucodia
There is a bunch of IRC libraries on Codeplex, one of them which seems quite good is Nebo IRC: http://nebo.codeplex.com/
Codeplex 上有一堆 IRC 库,其中一个看起来不错的是 Nebo IRC:http: //nebo.codeplex.com/
Some other IRC libraries on Codeplex: http://www.codeplex.com/site/search?projectSearchText=IRC
Codeplex 上的其他一些 IRC 库:http: //www.codeplex.com/site/search?projectSearchText =IRC
回答by Kiquenet
Try using this C# IRC Library: http://www.meebey.net/projects/smartirc4net/
尝试使用这个 C# IRC 库:http: //www.meebey.net/projects/smartirc4net/
It has many methods, I'm sure you can achieve everything you want with them: http://smartirc4net.meebey.net/docs/0.4.0/html/
它有很多方法,我相信你可以用它们实现你想要的一切:http: //smartirc4net.meebey.net/docs/0.4.0/html/
Projects using SmartIrc4net
使用 SmartIrc4net 的项目
- Smuxi IRC Client
- SparkleShare
- Low Orbit Ion Cannon
- MonkeyWrench
- U-Lyss IRC-Bot
- DG Network
- Abbot
- Spike.NET
- Prelude Chatbot
- VandalSniper
- Smuxi IRC 客户端
- 闪享
- 低轨道离子炮
- 猴子扳手
- U-Lyss IRC-Bot
- DG网络
- 方丈
- 斯派克网络
- 前奏聊天机器人
- 破坏者狙击手
References: Get users list of a given channel in IRC server using C#