XMPP C#互动 [英] XMPP C# Interaction

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

问题描述

我想通过C#和通过JavaScript连接到XMPP服务器(目前ejabberd)。有一个小麻烦概念化的连接将如何存在的IM。

I am trying to connect via c# and via javascript to an xmpp server (currently ejabberd). Im having a little trouble conceptualizing how the connections will exists.

背景故事:我有一个游戏引擎,将采取由用户输入并发送某种响应还给他们。用户可以是Windows应用程序,一个Web应用程序,所有需要连接几乎相同的方式。游戏引擎是一个C#应用程序,相应的处理意见。是我的游戏引擎XMPP服务器像其他人一样在用户?他怎么去跟别人和VICA verca。如何这种事情是使用XMPP做了详细的教程不胜感激,如果可能的。

Backstory: I have a game engine that will take input from the user and send some kind of response back to them. The user may be a windows app, a web app, all needing to connect pretty much the same way. The game engine is a c# application that handles the input accordingly. Is my game engine a user on the xmpp server just like everyone else? How does he talk to the others and vica verca. A detailed tutorial on how this kind of thing is done using xmpp is greatly appreciated if possible.

是否有C#库来处理我在上面指定的方式XMPP连接?请问Ja​​vaScript的也打同样的方式XMPP服务器?

Are there c# libraries to handle the xmpp connection in the way I specified above? Would the javascript also be hitting the xmpp server in the same way?

推荐答案

您的游戏服务器将是一个 XMPP组件您的用户能够直接沟通,像他们可以在一个XMPP系统中的其他用户,服务器或组件。

Your game server would be an XMPP component which your users could directly communicate with, like they can with any other user, server or component in an XMPP system.

用户登录到你的服务器(比如example.com)的标准方式,那么他们可以开始发送的直接喜欢组件(game-engine.example.com)任何类型的消息。游戏引擎部件存在分开你的XMPP服务器,并使用的Jabber组件协议两个沟通。如果你希望它能够发起通信的客户端也可以发送定向的存在的组件。

Users log into your server (say example.com) in the standard way, then they can start sending messages of whatever type you like directly to your component (game-engine.example.com). Your game engine component exists separately to your XMPP server and the two communicate using the Jabber Component Protocol. Your client can also send directed presence to the component if you want it to be able to initiate communications.

不过,当你正在使用ejabberd,你就可以实现游戏引擎的邮件系统作为 ejabberd模块

Though, as you're using ejabberd, you could also implement the game engine messaging system as an ejabberd module.

这可能回答您关于C#XMPP库问题:的 http://stackoverflow.com/questions/1166252/net-xmpp-libraries-under-apache-mit-or-ms-pl-licenses

This probably answers your question about a C# XMPP library: http://stackoverflow.com/questions/1166252/net-xmpp-libraries-under-apache-mit-or-ms-pl-licenses

这篇关于XMPP C#互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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