• 大小: 0.05M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  iis  服务  c  服务端  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace Bend.Util {

    public class HttpProcessor {
        public TcpClient socket;        
        public HttpServer srv;

        private Stream inputStream;
        public StreamWriter outputStream;

        public String http_method;
        public String http_url;
        public String http_protocol_versionstring;
        public Hashtable httpHeaders = new Hashtable();


        private static int MAX_POST_SIZE = 10 * 1024 * 1024; // 10MB

        public HttpProcessor(TcpClient s HttpServer srv) {
            this.socket = s;
            this.srv = srv;                   
        }
        

        private string streamReadL

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        117  2013-02-16 15:50  SimpleHttpServer\app.config

     文件       9728  2013-02-16 15:50  SimpleHttpServer\bin\Debug\SimpleHttpServer.exe

     文件        117  2013-02-16 15:50  SimpleHttpServer\bin\Debug\SimpleHttpServer.exe.config

     文件      22016  2013-02-16 15:50  SimpleHttpServer\bin\Debug\SimpleHttpServer.pdb

     文件      21472  2013-02-16 15:50  SimpleHttpServer\bin\Debug\SimpleHttpServer.vshost.exe

     文件        117  2013-02-16 15:50  SimpleHttpServer\bin\Debug\SimpleHttpServer.vshost.exe.config

     文件        490  2010-03-17 22:39  SimpleHttpServer\bin\Debug\SimpleHttpServer.vshost.exe.manifest

     文件       6600  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        532  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug\SimpleHttpServer.csproj.FileListAbsolute.txt

     文件       1571  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug\SimpleHttpServer.csprojResolveAssemblyReference.cache

     文件       9728  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug\SimpleHttpServer.exe

     文件      22016  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug\SimpleHttpServer.pdb

     文件       1468  2010-12-19 20:36  SimpleHttpServer\Properties\AssemblyInfo.cs

     文件       9217  2013-02-16 16:13  SimpleHttpServer\SimpleHttpServer.cs

     文件       2531  2013-02-16 15:50  SimpleHttpServer\SimpleHttpServer.csproj

     文件        143  2010-12-19 20:36  SimpleHttpServer\SimpleHttpServer.csproj.user

     文件        877  2010-12-19 20:36  SimpleHttpServer\SimpleHttpServer.sln

    ..A..H.     23552  2013-02-16 14:45  SimpleHttpServer\SimpleHttpServer.suo

    ..A..H.     30720  2013-02-16 16:13  SimpleHttpServer\SimpleHttpServer.v11.suo

     目录          0  2013-02-16 13:21  SimpleHttpServer\obj\x86\Debug\TempPE

     目录          0  2013-02-16 14:31  SimpleHttpServer\bin\Debug\wwwroot

     目录          0  2013-02-16 15:50  SimpleHttpServer\obj\x86\Debug

     目录          0  2013-02-16 15:50  SimpleHttpServer\bin\Debug

     目录          0  2013-02-16 13:21  SimpleHttpServer\obj\x86

     目录          0  2013-02-16 13:21  SimpleHttpServer\bin

     目录          0  2013-02-16 13:21  SimpleHttpServer\obj

     目录          0  2010-12-19 20:36  SimpleHttpServer\Properties

     目录          0  2013-02-16 15:50  SimpleHttpServer

----------- ---------  ---------- -----  ----

               163012                    28

............此处省略1个文件信息

评论

共有 条评论