通过NetConnection连接两个Flash Media Server,但无法使用call方法

发布于 2024-08-05 13:07:03 字数 418 浏览 2 评论 0原文

我想知道是否有人有幸通过服务器端 NetConnection 将一个 FMS 连接到另一个 FMS(两台不同的物理机),然后让第一个 FMS 调用第二个 FMS 的方法。

我能够使连接正常(尽管 NetConnection.Connect.Success 事件永远不会触发)。之后,我让 Flash 客户端调用第一个服务器上的方法,然后第一个服务器上调用第二个服务器上的方法,当然,两者都是通过 nc.call 进行的。

从第一个 FMS 到第二个 FMS 的 nc.call 不会被第二个 FMS 接收。没有错误,日志中没有任何内容,似乎只是被忽略了。

我已经一遍又一遍地浏览服务器端 NetConnection.call 上的文档,似乎只是按照他们指定的方式进行操作,但没有运气。

感谢任何可以提供帮助的人。

干杯。

埃文

I'm wondering if anyone has had any luck connecting one FMS to another FMS (two different physical machines) via a server-side NetConnection, then having the first call a method on the second.

I'm able to make the connection fine (though the NetConnection.Connect.Success event never fires). After which I have the Flash client calling a method on the first server, which then calls a method on the second server, both via nc.call of course.

The nc.call from the first FMS to the second doesn't get received by the second FMS. No error, nothing in the logs, just ignored it seems.

I've gone through the docs on server side NetConnection.call again and again, and seem to be doing it just the way they specify, but with no luck.

Thanks to anyone who can offer some help.

Cheers.

Evan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒冷纷飞旳雪 2024-08-12 13:07:03

只是想我会在这里发布我自己的答案。遗憾的是,导致我出现问题的原因是 onConnect 中缺少 application.acceptConnection 。

没有意识到我必须明确地调用它,但这是有道理的。

希望它可以帮助那些尝试将两个 FMS 实例连接在一起的人...

:)

Just thought I'd post my own answer here. Regrettably, it was a simple lack of a application.acceptConnection in the onConnect that was causing my issue.

Didn't realize I had to explicitly call that, but it makes sense.

Hope it helps somebody out there trying to connect two FMS instances together...

:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文