web server design
- From: kasthurirangan.balaji@xxxxxxxxx
- Date: Fri, 26 Oct 2007 06:35:30 -0700
I intend to write a server in this fashion.
1)Create a socket, bind it and listen on it.
2)Fork 'n' number of childs and pass the socket descriptor as
argument.
3)Each would would then do an accept on that socket descriptor.
4)when a request comes to any of the childs, the child would create a
thread to handle it.
This is just the outline. Is this a correct/good design and in right
direction? Can i replace step 1 of this with openSSL create call for
adding security?
Thanks,
Balaji.
.
- Follow-Ups:
- Re: web server design
- From: David Schwartz
- Re: web server design
- From: Barry Margolin
- Re: web server design
- From: Gianni Mariani
- Re: web server design
- Prev by Date: Re: newbie question about fork/pipe/stdin/stdout
- Next by Date: Re: Using rename() across file systems
- Previous by thread: Re: newbie question about fork/pipe/stdin/stdout
- Next by thread: Re: web server design
- Index(es):
Relevant Pages
|