Re: HTTPhandlers

From: daFou (daFou_at_discussions.microsoft.com)
Date: 09/14/04


Date: Tue, 14 Sep 2004 08:55:06 -0700

My chat server does work on any other port that is not already in use. So
debates weather or not HTTP is a suitable protocol is not what I am looking
for.
I need to know how I can have a TcpListener listen on port 80 eventhough IIS
or any other process is listening on that port.. If that is not possible then
I need an HTTPhandler to send a HTTPrequest to another program where it can
be stored.

One way of doing that might be to never letting the ProcesRequest Method end
using some kind of sleep method.

anyways please think along with me.

Regards

"Girish Bharadwaj" wrote:

> One thing you can probably do is to have a different port based server to
> which you make the request to do the connection with the user and maintain
> that connection. But, as Richard says, you cannot get there from here.
>
>
> --
> Girish Bharadwaj
> http://msmvps.com/gbvb
> "Richard Blewett [DevelopMentor]" <richardb@develop.com> wrote in message
> news:ejE9wNlmEHA.1136@TK2MSFTNGP10.phx.gbl...
> > What you NEED and whether the communications protocol you have selected
> can support it are two different issues.
> >
> > HTTP is a stateless protocol. You cannot keep connections open over long
> periods (keep-alives are not desined for this).
> >
> > So sorry, you cannot toake the approach you want with HTTP
> >
> > Regards
> >
> > Richard Blewett - DevelopMentor
> >
> > http://staff.develop.com/richardb/weblog
> >
> >
> >
> >
> nntp://news.microsoft.com/microsoft.public.dotnet.framework/<4728F0E6-586C-4E87-A5E1-D530EE13C864@microsoft.com>
> >
> > I NEED to maintain an active connection to be able to create an efficient
> > chat application on port 80 without the use of flash or java or active x.
> > Please read this link:
> http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21129241.html
> > It explains what I want to do.
> >
> > It comes down to that I have written this very efficient DHTML chat
> server
> > that maintains an active connection with the browser. But I use a
> TcpListener
> > to make it work and this means I cannot have the DHTML server work on
> port 80.
> > So I figured to use HTTPhandler to intercept certain requests on port 80
> and
> > pass them to the DHTMLchatServer.
> >
> > Any advice would be welcome
> >
> >
> > "Girish bharadwaj" wrote:
> >
> > > If you look at the help for HttpContext: " Encapsulates all
> HTTP-specific
> > > information about an individual HTTP request. ". By definition, Context
> is
> > > only per request. If you want more that information or want to do
> something
> > > across invocations, you might have to consider some of the state
> management
> > > schemes presented by ASP.NET such as Cookies, ViewState, Session
> > > ,Application or Cache.
> > >
> > > --
> > > Girish Bharadwaj
> > > http://msmvps.com/gbvb
> > > "John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
> > > news:%238$f0zemEHA.2788@TK2MSFTNGP10.phx.gbl...
> > > > "daFou" <daFou@discussions.microsoft.com> wrote in message
> > > > news:1F690C94-2FB5-43F8-B295-EC981805906E@microsoft.com...
> > > > > Hi ALl,
> > > > >
> > > > > How do I prevent the ProcessRequest method from the IHttpHandler
> Class
> > > > from
> > > > > closing the http connection and killing the context after the
> > > > ProcessRequest
> > > > > method has ended.
> > > > >
> > > > > TO further explain what I want please read this link:
> > > > >
> > > >
> > >
> http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21129241.html
> > > >
> > > > Q: How do I prevent ProcessRequest from closing the connection when
> it's
> > > > done?
> > > > A: You don't
> > > >
> > > > ASP.NET doesn't work that way. It's all about request/response. Once
> the
> > > > response has been sent, the request is over and gone, as though it
> had
> > > never
> > > > existed (except for anything persistent which the request may have
> done).
> > > >
> > > > If you need to keep connections open for an indefinite period of
> time,
> > > then
> > > > you need to stop using ASP.NET.
> > > > --
> > > > John Saunders
> > > > johnwsaundersiii at hotmail
> > > >
> > > >
> > >
> > >
> > >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
> >
> >
> >
> > [microsoft.public.dotnet.framework]
>
>
>



Relevant Pages

  • Re: Processs PreciseMail AntiSpam Gateway - any experience so far ?
    ... >>This protocol is designed to be used between domain Email Service ... > randomly generated the port number and communicated that back to the sender ... > before closing the connection. ... if the receiver ESP can make that work. ...
    (comp.os.vms)
  • Re: Help understanding error message
    ... Saravana Kumar [MVP - BizTalk Server] ... Receive port is reported to be HTTP but I don't any see HTTP packets in ... Maybe you set up a two-way send port being directed to a one-way ... Details:"Unable to read data from the transport connection: The ...
    (microsoft.public.biztalk.general)
  • Re: [fw-wiz] tunnel vs open a hole
    ... It does depend on what protocols you are passing through the port or the ... If the protocol is pure HTTP, ... If the protocol is new whizbang multi-media binary with no RFC or complete ... or tunnel over currently open port 80? ...
    (Firewall-Wizards)
  • Re: Help understanding error message
    ... Network traces show lots of bad checksums, everywhere, not just on BTS ... Receive port is reported to be HTTP but I don't any see HTTP packets in ... Maybe you set up a two-way send port being directed to a one-way receive ... Details:"Unable to read data from the transport connection: The ...
    (microsoft.public.biztalk.general)
  • Re: NetworkFacade 0.4
    ... This means that the protocol is similar to DRb, but different, ... with regards to connection caching and what happens if connections are ... can be made in both directions down the same socket. ... hostname and a port on the firewall which forwards inbound connections. ...
    (comp.lang.ruby)

Loading