• 大小: 0.01M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签: 服务器  asp  服务  NET  

资源简介

AspNet 服务器

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Web;

namespace AspNetServer
{
    public class HttpProcessor : MarshalByRefobject
    {
        private Socket _socket;

        private bool _isClosed;

        private SimpleHost _host;

        private static readonly Dictionary staticFileContentType = new Dictionary()
                                                                   {
                                                                       {“htm“ “text/html“}
                                                                       {“html“ “text/html“}
                                                                       {“xml“ “text/xml“}
                                                                       {“txt“ “text/plain“}
                                             

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-07-13 12:49  AspNetServer-master\
     文件        2004  2013-07-13 12:49  AspNetServer-master\.gitignore
     文件         906  2013-07-13 12:49  AspNetServer-master\AspNetServer.sln
     目录           0  2013-07-13 12:49  AspNetServer-master\AspNetServer\
     文件        2690  2013-07-13 12:49  AspNetServer-master\AspNetServer\AspNetServer.csproj
     文件       11614  2013-07-13 12:49  AspNetServer-master\AspNetServer\HttpProcessor.cs
     文件        1311  2013-07-13 12:49  AspNetServer-master\AspNetServer\Program.cs
     目录           0  2013-07-13 12:49  AspNetServer-master\AspNetServer\Properties\
     文件        1326  2013-07-13 12:49  AspNetServer-master\AspNetServer\Properties\AssemblyInfo.cs
     文件        2360  2013-07-13 12:49  AspNetServer-master\AspNetServer\RequestInfo.cs
     文件         723  2013-07-13 12:49  AspNetServer-master\AspNetServer\SimpleHost.cs
     文件        1930  2013-07-13 12:49  AspNetServer-master\AspNetServer\WebServer.cs
     文件        6338  2013-07-13 12:49  AspNetServer-master\AspNetServer\WorkerRequest.cs
     文件          97  2013-07-13 12:49  AspNetServer-master\readme.md

评论

共有 条评论