how to implement multiple child "accept" within one socket..
Hi friends..!
I am implementing the server application which have serval child
process.
Like this
[parent]
|
+------+------+---+
| | | |
child1 child2 ... ....
The childs are forked from parent.
I oberved if the each child accept the socket simultaneous,
then the "accept" failed..
Then I use the semophore to prevent simultaneous acception between
child processes.
Is there other efficient method?
Thanks for any help..
whkye
Bye
begin: vcard
fn;quoted-printable:=B0=E8 =BF=F8=C8=A3 (Won-Ho Kye)
n;quoted-printable:;=B0=E8 =BF=F8=C8=A3 (Won-Ho Kye)
org;quoted-printable:=BC=D2=C7=C1=C6=AE=C6=F7=B7=B3 (SoftForum)
adr;quoted-printable:;;;;;;=B4=EB=C7=D1=B9=CE=B1=B9(Korea)
email;internet: whkye@softforum.co.kr
title;quoted-printable:=B0=E8=BF=F8=C8=A3=C0=C7 address card
tel;work: 0342-780-6802
tel;fax: 0342-780-6820
note;quoted-printable:=BE=C8=B3=E7=C7=CF=BC=BC=BF=E4!.
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
Reply to: