ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
RE: [ECS] Web server "events" needed ?
Rob Hicks
Thu, 10 Feb 2000 07:17:00 -0800

Hi Mark.

It looks like you're making good progress.

I can't speak to the read/write events, but I believe can shed some light on
the close event, if I understand your question correctly. Older web browsers
(and servers for that matter) tried to maintain an open session unless the
connection was closed. If not, they maintained a "keep alive" for that
connection and when they tried to maintain too many "keep alives" would run
out of memory and die. Newer servers and browsers automatically time out
each keep alive.

Also, I have a question. I assume that ECS is using port 80 for HTTP.
However, if a web server already exists on the ECS server machine, ECS won't
be able to process any client requests because both ECS and the preexisting
web server will be trying to listen on the same port. Have you thought about
allowing just a regular web server process requests for ECS?

Regards,
Rob
801-319-1766
robhicks@utah-inter.net

-----Original Message-----
From: Mark Gilmore [mailto:omnip@usit.net]
Sent: Thursday, February 10, 2000 5:52 AM
To: ecs-list@netbloc.com; Chris Armbruster; Dario
Subject: [ECS] Web server "events" needed ?

Hi all,
In servicing web-based Client requests, the example I referenced
defined "Events" for ACCEPT/READ/WRITE/CLOSE. I am still confused
as to the diff btw READ/WRITE events (all I know is that when i get
a WRITE Event, that I sometimes need to wait a second or so for I
get the request packet from the Client). And I have YET to see a
CLOSE Event.

QUESTION:
Do I really need these "events" at all ?
I.E. - couldn't I just call accept() (to check for new connections)
and recv() (to check for Client requests), and react appropriately
(withOUT the use of these "events") ??

tanx
--
Mark Gilmore
Omnipotence (ECS home automation software)
http://www.usit.com/omnip
423-745-0026


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.