how to implement fork() in socket programming b/w server/client in voice communicatio
hello there...
i am doing dis project in LINUX using socket programming b/w a client/server . the server gets da voice from mic and then is supposed to send dat voice to the client and whch plays it to speakers! i hav accomplished reading/playing sound card in linux and also connected client/server to transfer text msgs only..... BUT ....cant implement FORK() b/w both the sound and text programms!! need help ...urgently ....plz teach me how to use fork () in detail ....if possible! |
Fork usage is simple. You just run fork() and see the result. If you get >0, you're in the parent process, if you get 0 you're in child process and if you get something less than 0 - there was an error.
The thing is what you want to do in parent/child process. |
All times are GMT -5. The time now is 02:25 AM. |