XMPP服务器名和XMPP服务名之间的区别? [英] difference between XMPP servername and XMPP servicename?

查看:98
本文介绍了XMPP服务器名和XMPP服务名之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Smack API中,有一个用于连接的配置类,在此页上进行介绍

In Smack API, there is a configuration class for connection, described at this page

我对服务名称和服务器名称之间的区别感到困惑.

I am confused about the distinction between service name and server name.

假设我有一台名为"mybox.mydomain.com"的计算机,并且在其上装有配置为"myhost"的主机(使用ejabbed.cfg中的行{hosts, ["myhost"]}.)的ejabberd,

Suppose I have a computer named "mybox.mydomain.com", and I have ejabberd on it with a configured host called "myhost" (using the line {hosts, ["myhost"]}. in ejabbed.cfg),

在这种情况下,主机名,服务器名和服务名是什么?

what is the host name, server name and service name in this case?

推荐答案

  • myhost:服务名称(或XMPP域)
  • mybox.mydomain.com:主机名和服务器名.
  • 您可以在任何主机上托管XMPP域,只要您直接在DNS中设置SRV记录,或者如果客户端指定了它应连接到哪个主机(例如电子邮件).

    You can host an XMPP domain over any host, provided that you set the SRV records right in the DNS or if the client specifies to which host it is supposed to connect (like email).

    这篇关于XMPP服务器名和XMPP服务名之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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