XMPP C#相互作用
【腾讯云】亏本大甩卖,服务器4核16G 1年370元(带宽12M,系统盘120GB SSD盘,月流量2000GB)!!!!!!
云产品 配置 价格
服务器 1核2G,带宽5M,系统盘50GB SSD盘,月流量500GB 38元/年
MySQL 1核1G 19元/年
服务器 16核32G,带宽18M,系统盘250GB SSD盘,月流量5000GB 1197元/年
点我进入腾讯云,查看更多详情

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?

#0

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.

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.

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.com/questions/1166252/net-xmpp-libraries-under-apache-mit-or-ms-pl-licenses

推荐文章

删除表空间文件导致plsql连不上数据库,报错ORA-01033

删除表空间文件导致plsql连不上数据库,报错ORA-01033

推荐文章

如何创建侦听已更改文件或新文件的文件夹

如何创建侦听已更改文件或新文件的文件夹

推荐文章

苹果Cocoa框架的设计模式:MVC、MVP、被动视图。。。苹果要去哪里?

苹果Cocoa框架的设计模式:MVC、MVP、被动视图。。。苹果要去哪里?

推荐文章

RHEL 8 安装 Oracle 19c 提示缺少 libnsl.so.1

RHEL 8 安装 Oracle 19c 提示缺少 libnsl.so.1

推荐文章

支持Git的开源IDE

支持Git的开源IDE

推荐文章

从SQL 2000更新到AS400

从SQL 2000更新到AS400

推荐文章

SQL SERVER LDF日志文件太大的解决方法

SQL SERVER LDF日志文件太大的解决方法

推荐文章

WPF中嵌套列表视图的层次数据绑定

WPF中嵌套列表视图的层次数据绑定

推荐文章

确定多个点的质心

确定多个点的质心

推荐文章

influxdb数据库增加身份认证(windows)三

influxdb数据库增加身份认证(windows)三

推荐文章

如何将QVariant转换为自定义类?

如何将QVariant转换为自定义类?

推荐文章

以编程方式或通过脚本更改Mac OS X用户密码

以编程方式或通过脚本更改Mac OS X用户密码

推荐文章

oracle数据库的启动、关闭、连接

oracle数据库的启动、关闭、连接

推荐文章

构建jQuery UI插件

构建jQuery UI插件

推荐文章

基于Xposed hook 实时监测微信消息

基于Xposed hook 实时监测微信消息

推荐文章

在不使用close(X)按钮和终止JVM的情况下关闭jframe

在不使用close(X)按钮和终止JVM的情况下关闭jframe