http.cs ---------------------------- using system; using system.collections; using system.io; using system.net; using system.net.sockets; using system.threading;
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); parserequest(); readheaders(); writeurl(); s.shutdown(socketshutdown.sdboth); ns.close(); }