Re: client server programming



shiv <vgstech@xxxxxxxxx> writes:

I am writing chat application when new request comes to
server it will fork and creates a child for that request and parent
will wait for next request.Since there is only one accept call after
first success it will return.How to do this for n number of requests.
If possible plz explain with example

I'm sure your instructor will be able to give you some useful help.
.



Relevant Pages

  • Re: timing a fork
    ... if ($kid) { ... What it does is say that the parent isn't interested in ... Once a parent process has forked it can carry on on its own while the child ... In fact what a call to 'system' does is to fork a child ...
    (perl.beginners)
  • Re: non-standard functions in libc -- bad design?
    ... reliably distinguish between the parent and child processes. ... fork() returns 0 in the child, the child pid in the parent, and -1 if it ... Note that the GNU OS with its GLIBC has specific problems... ...
    (comp.unix.programmer)
  • Re: fork defunct process, already forked twice
    ... // in parent, parent waits for child to exit ... //output a fork error message; ...
    (comp.unix.questions)
  • Re: SCM_RIGHTS passes bad socket descriptor
    ... >> the parent after the first fork? ... release heap memory ... was allocated before the fork(). ... parent exits and when the child exits. ...
    (comp.os.linux.development.apps)
  • Re: perl threads and inter thread communication
    ... What you could do is simply keep the parents process ID around in the child, ... and use killto send the parent a message. ... calling fork(). ... module and was not portable, but if you're talking to chips, portability is ...
    (comp.lang.perl.misc)