简体   繁体   English

Apache MINA服务器和PHP客户端

[英]Apache MINA Server and PHP Client

If I made a Apache MINA Server in Java and used a PHP Client would there be any problems? 如果我用Java制造Apache MINA服务器并使用PHP客户端,会不会有问题? I do not quite understand the NIO thing so if you could explain that to me too I would <3 you :) 我不太了解NIO,所以如果您也可以向我解释,我会<3您:)

Your question is terribly broad, but the short answer is yes, you should be able to setup mina <--> php. 您的问题非常广泛,但是简短的回答是,您应该可以设置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. 我不知道您真的必须了解有关Java NIO的所有细节,才能使用Mina。 To my knowledge, that is sorta the point of Mina - it abstracts out the "hard parts" of the low level NIO stuff. 据我所知,这就是Mina的重点-它抽象出了底层NIO东西的“硬部分”。

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. 如果您真的想了解NIO,恐怕这里没有万能的答案,它将解释您有效地进行网络编程(特别是使用任何一种语言)所需了解的所有知识。

That being said, start with the basics, like the wikipedia entry on sockets . 话虽这么说, 但从基础知识开始,例如Sockets上Wikipedia条目 Then try a tutorial on sockets in Java, PHP and whatever else you need. 然后尝试使用Java,PHP和其他所需套接字的教程。 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. 读一本书和/或上一堂课等。这不是大多数人通过一个stackoverflow帖子掌握的东西之一,这需要时间和精力。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM