linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* child processes
@ 2002-04-22 13:39 Gerald Waugh
  2002-04-22 18:15 ` Ajay Dudani
  0 siblings, 1 reply; 2+ messages in thread
From: Gerald Waugh @ 2002-04-22 13:39 UTC (permalink / raw)
  To: linux-c-programming

I am not doing a good job of explaining my requirements, but I am looking for
ideas...
 I have an assignment to do an applicaiton that must communicate on
three different TCP ports...
I was wondering if I could run a daemon that would create three child
processes, one for each of the tcp ports?
Then have the daemon run any time there was communications activity on any of
the ports
The daemon must translate the data coming in any one of the ports to a protocol
acceptable to the port the data is to be sent to.
Any ideas?.

 --

Gerald Waugh
http://www.frontstreetnetworks.com
Front Street Networks LLC - 203-785-0699
229 Front Street, Ste. #C, New Haven CT, 06513-3203

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: child processes
  2002-04-22 13:39 child processes Gerald Waugh
@ 2002-04-22 18:15 ` Ajay Dudani
  0 siblings, 0 replies; 2+ messages in thread
From: Ajay Dudani @ 2002-04-22 18:15 UTC (permalink / raw)
  To: Gerald Waugh; +Cc: linux-c-programming


man select

select allows for "synchronous I/O multiplexing"

"The  functions  select  and  pselect wait for a number of file
descriptors to change status." - man page

You can use these descriptors to be socket fd's

Ajay


On Mon, 22 Apr 2002, Gerald Waugh wrote:

>    I am not doing a good job of explaining my requirements, but I am looking for
>    ideas...
>     I have an assignment to do an applicaiton that must communicate on
>    three different TCP ports...
>    I was wondering if I could run a daemon that would create three child
>    processes, one for each of the tcp ports?
>    Then have the daemon run any time there was communications activity on any of
>    the ports
>    The daemon must translate the data coming in any one of the ports to a protocol
>    acceptable to the port the data is to be sent to.
>    Any ideas?.
>

-- 
Ajay Dudani <abdudani@cs.ncsu.edu>
Graduate Student in Computer Science at NC State University
http://www4.ncsu.edu/~abdudani


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-22 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-22 13:39 child processes Gerald Waugh
2002-04-22 18:15 ` Ajay Dudani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).