Jabber的网整合 [英] Jabber-net integration

查看:246
本文介绍了Jabber的网整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问问你关于有一个谷歌通话博特,将与我的我的服务器上的代码进行通信的帮助。



我已经下载的Jabber,从净码.google.com,但那里的例子还不够......我是新来的这些技术,并没有任何线索一下:




  1. 客户端将如何到达我的服务器?我应该在哪里改[如有] DNS到我的服务器?

  2. 我应该使用哪种服务器端库?

  3. 从我明白我的例子需要有一个桌面应用在不断的背景下,这是没有道理给我跑过来。



有没有人有一个例子一些更好的参考,以更好的理解?
[对不起,我的无知...]


解决方案

  1. 我不知道如果我理解你正确地问什么。如果你问如何连接到选择的服务器,控制台示例展示了如何做到这一点简单地说,你基本上填写JID类。从Jabber的-NET
    样品



 
JabberClient JC =新JabberClient();
JID J =新的JID(JID);
jc.User = j.User;
jc.Server = j.Server;
jc.NetworkHost = networkHost;
jc.Port =口;
jc.Resource =Jabber.Net控制台客户端;
jc.Password =通过;
jc.AutoStartTLS = TLS;
jc.AutoPresence = initialPresence;




  1. 如果你想创建自己的服务器,有一个库(也.NET下运行)呼吁agsxmpp,它允许同时创建,服务器和客户端,它是在MIT / GPL许可证AFAIR开源。我不知道是否叽里咕噜网启用该功能。在另一方面,有很多免费的Jabber服务器,如果你不想只是使用的公共的人之一,所以它可能是值得利用的东西是蓄势待发的考虑而已。


  2. 有一个在项目中的控制台样品,你并不需要桌面应用程序(如果这是你问的是什么?),所以你可以写服务,控制台应用程序或其他任何东西。



I'd like to ask your help regarding having a Google Talk Bot that will communicate with my code on my server.

I have downloaded Jabber-Net from code.google.com, but the examples there are not enough... I am new to these technologies, and have no clue about:

  1. How will client arrive to my server? where should I change [if any] DNS to my server?
  2. Which server side library should I use?
  3. From the examples I understood that I need to have a Desktop-app running in the background constantly, which doesn't make sense to me.

Does anyone has an example of some better references to understand this better? [Sorry for my ignorance...]

解决方案

  1. I'm not sure if I understand what you ask correctly. If you're asking how to connect to chosen server, console sample shows how to do it simply, you basically fill out JID class. Sample from Jabber-Net

JabberClient jc = new JabberClient();
JID j = new JID(jid);
jc.User = j.User;
jc.Server = j.Server;
jc.NetworkHost = networkHost;
jc.Port = port;
jc.Resource = "Jabber.Net Console Client";
jc.Password = pass;
jc.AutoStartTLS = TLS;
jc.AutoPresence = initialPresence;

  1. If you want to create your own server, there's a library (also running under .NET) called agsxmpp, it allows to create both, server and client, it's open source on MIT/GPL license afair. I don't know if jabber-net enables this feature. On the other hand, there are plenty of free jabber-server if you don't want to just use one of "public" ones, so it may be worth to consider just using something that is ready to be launched.

  2. There's a console sample in the project, you don't need desktop-app (if this is what you were asking?), so you can write service, console app or anything else.

这篇关于Jabber的网整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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