简体   繁体   English

如何实现HttpDaemon

[英]How to implement HttpDaemon

I am a Java Programmer.I have to implement HttpDaemon.I think it would be written in 'C' or 'Perl' . 我是Java程序员,我必须实现HttpDaemon。我认为它将用'C'或'Perl'编写。 Kindly help me in what is it and How to implement it. 请帮助我它是什么以及如何实现它。

  1. Read and understand all the relevant specs. 阅读并了解所有相关规格。
  2. Code it up. 编码。 Start with java.net.ServerSocket . java.net.ServerSocket开始。

The first step is the hard one! 第一步是艰辛的!

Seriously, there are many industrial-strength web servers written in Java: Tomcat , Jigsaw , etc. Here is a long list of them. 认真地说,有许多用Java编写的具有工业实力的Web服务器: TomcatJigsaw等。 这是一长串的清单。

Perhaps of most interest to you would be Jetty , which is designed to be embedded into other applications. 您可能最感兴趣的是Jetty ,其旨在嵌入到其他应用程序中。 Use Jetty, rather than writing your own. 使用Jetty,而不是自己编写。 It's a large undertaking to do a good job, and why reinvent the wheel? 做好这项工作是一项艰巨的任务,为什么要重新发明轮子呢?

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

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