Apache MINA 服务器和 PHP 客户端
如果我用Java制作Apache MINA服务器并使用PHP客户端会有什么问题吗?我不太明白 NIO 的事情,所以如果你也能向我解释一下,我会<3你:)
If I made a Apache MINA Server in Java and used a PHP Client would there be any problems? I do not quite understand the NIO thing so if you could explain that to me too I would <3 you :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题非常广泛,但简短的答案是肯定的,你应该能够设置 mina <--> php。
我不知道您是否真的必须了解有关 Java NIO 的所有细节才能使用 Mina。据我所知,这就是 Mina 的要点——它抽象出了低级 NIO 内容的“困难部分”。
如果你真的想了解 NIO,恐怕这里没有灵丹妙药的答案可以解释你需要知道的一切,以便有效地进行网络编程——特别是使用任何语言。
话虽如此,从基础知识开始,例如套接字上的维基百科条目。然后尝试有关 Java、PHP 和任何您需要的其他内容的套接字的教程。读一本书和/或参加一门课程等等。这不是大多数人通过一个 stackoverflow 帖子就能掌握的事情之一 - 这需要时间和精力。祝你好运!
Your question is terribly broad, but the short answer is yes, you should be able to setup mina <--> php.
I don't know that you really have to know all the nitty gritty details about Java NIO in order to use Mina. To my knowledge, that is sorta the point of Mina - it abstracts out the "hard parts" of the low level NIO stuff.
If you really want to learn about NIO I'm afraid there is no silver bullet answer here that will explain everything you need to know in order to effectively do networking programming - in any language in particular.
That being said, start with the basics, like the wikipedia entry on sockets. Then try a tutorial on sockets in Java, PHP and whatever else you need. Read a book and\or take a class, etc, etc. This isn't one of those things that most people master via one stackoverflow post - it will take time and effort. Good luck!