Tiny Java Web Server

授权协议 未知
开发语言 Java
所属分类 服务器软件、 应用服务器
软件类型 开源软件
地区 不详
投 递 者 澹台正业
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

TJWS is an Open Source HTTP Server and Servlet container written in 100% Java. It's designed to be light weight, high performance, secure, embeddable, extensible and flexible. Very small footprinted (~76K), CGI, J2EE/JSP compatible. Servlet spec 2.5. 结构图:

  • import java.io.*;importjava.net.ServerSocket;importjava.net.Socket;importjava.util.ArrayList;/*** Created by Administrator on 2016/7/29.*/ public class HttpDemo extendsThread {privateServerSocket serv

  • 这里的参照的代码是https://github.com/qinguoyi/TinyWebServer 对于原代码的不足之处,我会在之后的文章中给出改进代码 在笔者fork的这版中,原代码作者对于代码作出了更细化的分类 细节问题可以参考《APUE》《Linux高性能服务器编程》或者我之前的博客 threadpool.h 设计思路 一个web服务器几乎离不开多线程了,在main那里我们说到main把所

  • 概述 dealwithread和dealwithwrite两个函数作用是插入任务到任务队列等待线程去完成 线程池中两个最为关键的成员:     pthread_t *m_threads;       //描述线程池的数组,其大小为m_thread_number     std::list<T *> m_workqueue; //请求队列 1、在WebServer中调用append_p和append

  • 本篇文章主要介绍Http和Buffer部分 Http请求和响应部分,其主要包含三个类httpConn, httpRequest, httpResponse Buffer解决的是并发情况下的读写问题 1. http请求和响应报文 首先让我们熟悉一下请求(Request)和响应(Response)报文,这两种报文在WebServer服务器中分别对应httpRequest和httpResponse类进行

  • 完善http_conn.h和http_conn.cpp两个文件的逻辑,并有效排错使其能正确运行 http_conn.h #ifndef HTTPCONNECTION_H #define HTTPCONNECTION_H #include <sys/epoll.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #includ

  • tinyweb 有什么用 Note: This project only serves single requests at once. Try this one instead. It's better: Tiny Web Server Take 2 注意:此项目一次只能处理单个请求。 试试这个吧。 更好: Tiny Web Server Take 2 介绍 (Introduction) Cur

  • lighttpd 官方主页:www.lighttpd.net Lighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。 lighttpd是众多OpenSource轻量级的web server中较为优秀的一个。支持FastCGI, CGI, Aut

  • 原文地址:http://xinsoft.bokee.com/3968180.html   大象推荐了几个Open Source的Web Server给我。都是由Java开发的。看了看,受益匪浅。 1、NanoHTTPD and Mp3HTTPD http://elonen.iki.fi/code/nanohttpd/ A free, simple, tiny (1 java file!), nic

相关阅读

相关文章

相关问答

相关文档