T
tower.grv
Hello.
I am developing application that has UDP server.
Application starts, create child thread (with fork), child thread call
function to create UDP server
#-------------------------------------------------------------------------
$sr = IO::Socket::INET->new(
Proto => "udp",
LocalPort => $MYPORT
);
while ($sr->recv($TD, 128)) {
#here it need to send data to main (parent) thread.
}
#------------------------------------------------------------------------
I tried to use signals (%SIG and kill).
But width signals I can only call some function from parent process
and I can't send received data.
How can I do this?
What another ways methods be used to send data to parent process?
I am developing application that has UDP server.
Application starts, create child thread (with fork), child thread call
function to create UDP server
#-------------------------------------------------------------------------
$sr = IO::Socket::INET->new(
Proto => "udp",
LocalPort => $MYPORT
);
while ($sr->recv($TD, 128)) {
#here it need to send data to main (parent) thread.
}
#------------------------------------------------------------------------
I tried to use signals (%SIG and kill).
But width signals I can only call some function from parent process
and I can't send received data.
How can I do this?
What another ways methods be used to send data to parent process?