• λ我爱Aspx >> Asp.Net >> 用浏览器来接收C# 的程序返回的时间cool!
  • 用浏览器来接收C# 的程序返回的时间cool!

  • :未知  Դ:internet  :2007-5-20 16:44:09  ؼ:c#
  • using System;

    using System.Collections;

    using System.IO;

    using System.Net;

    using System.Net.Sockets;

    using System.Threading;

    class HttpProcessor {

    private Socket s;

    private BufferedStream bs;

    private StreamReader sr;

    private StreamWriter sw;

    private String method;

    private String url;

    private String protocol;

    private Hashtable hashTable;

    public HttpProcessor(Socket s) {

    this.s = s;

    hashTable = new Hashtable();

    }

    public void process() {

    NetworkStream ns = new NetworkStream(s, FileAccess.ReadWrite);

    bs = new BufferedStream(ns);

    sr = new StreamReader(bs);

    sw = new StreamWriter(bs);

    writeURL();

    s.Shutdown(SocketShutdown.SdBoth);

    ns.Close();

    }

    public void writeURL() {

    try {

    writeSuccess();

    Ҷƪл˵?
  • һƪ用Asp.net实现简单的文字水印
    һƪ使用C# 编写扩展存储过程