LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2005, 01:46 PM   #1
timeout4me
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Unhappy 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!
 
Old 08-05-2005, 04:01 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot read data at server socket, though client socket sends it jacques83 Linux - Networking 0 11-15-2005 01:58 PM
compile the socket server for the client cool hat Linux - Software 0 06-19-2004 01:23 PM
How to implement multithreading in Socket ??? ponka128 Programming 5 05-23-2004 10:07 AM
socket server programming for help! edwardhayes Programming 7 09-27-2003 05:33 AM
C++ Server side socket programming Mr_ss Programming 1 05-11-2001 05:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration