admin管理员组文章数量:1328616
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.
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.
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?
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.
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.
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?
Share Improve this question asked Jan 23, 2010 at 6:37 DestedDested 6,43312 gold badges53 silver badges73 bronze badges1 Answer
Reset to default 6Your game server would be an XMPP ponent which your users could directly municate with, like they can with any other user, server or ponent in an XMPP system.
Users log into your server (say example.) in the standard way, then they can start sending messages of whatever type you like directly to your ponent (game-engine.example.). Your game engine ponent exists separately to your XMPP server and the two municate using the Jabber Component Protocol. Your client can also send directed presence to the ponent if you want it to be able to initiate munications.
Though, as you're using ejabberd, you could also implement the game engine messaging system as an ejabberd module.
This probably answers your question about a C# XMPP library: https://stackoverflow./questions/1166252/net-xmpp-libraries-under-apache-mit-or-ms-pl-licenses
本文标签: javascriptXMPP C InteractionStack Overflow
版权声明:本文标题:javascript - XMPP C# Interaction - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742230984a2437209.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论