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: 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)
  • Re: JAVA process hang when expectts error stream from C++ application
    ... Every time you fork(), both parent and child processes share the same ... set of descriptors. ...
    (comp.lang.java.programmer)