Skip to contentSkip to conversation

child processes

DISCUSSION Gerald Waugh 2 participants 2 messages Apr 22, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 12 lines · Gerald Waugh

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?.

Signature · 3 lines
Ajay Dudani <[email protected]>
Graduate Student in Computer Science at NC State University
http://www4.ncsu.edu/~abdudani