help with socket programming
I needed some help with unix socket programming.i have the richard steven's book but couldnt solve this. i need a socket descriptor handle to process all my clients which fork out.but the handle i was using new_fd(see below) turned out to be the same for all. listen(..,..) for(;;) { int new_fd=accept(sockfd,,...); ... } Shouldnt the new_fd be distinct everytime a new client connects? Thanks in advance, Vinod __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
killing an application through code
Can anyone tell me how i can kill an application process through a piece of C code? i have the realplayer application,which has to be closed manually with a mouse or using ctrl-C or using kill pid. But how can i kill it through a piece of code? one way is to execute ps and then grep 'realplay' from it and get the pid and kill it.Isn't there any other way i can do this? isn't there something which kills from command name like 'kill realplay'? Thanks in advance, Vinod __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
DCOPserver:failed inter process communication
Hi there.I was trying to use the kill $! command to kill the last process but instead did a kill $? by mistake and from then on my interprocess communication doesnt start. i get the following message There was an error setting up inter-process Communications for KDE.The message returned by the system was: Could not read network connection list. /root/DCOPserver_uncc.edu_:0 Please check that the dcopserver program is running. thne on my screen i see a ICEauthority failing.can't make much sense.Can anyone tell me how i can salvage things here? Would really appreciate it. Thanks in advance, Vinod __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message