thanks for the save on 2 keith. :)<br>i was off by a mile, and Time::HiRes is a great suggestion for the relative OS independence.<br>I would hope, but can't confirm, alex is using something *nixy, though<br>"a test application running on PC." is somewhat nondescript in that regard.<br>
;)<br><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 6:21 PM, Keith Thompson <span dir="ltr"><<a href="mailto:kst@mib.org">kst@mib.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Dec 09, 2009 at 05:49:10PM -0800, Christopher Hart wrote:<br>
> 1. I would assume, (possibly incorrectly) that using the Socket or<br>
> IO::Socket modules would provide the inherent ability to open more than one<br>
> tcp socket for send/receive. Although i could see being limited in having<br>
> more than one [socket bound to a] filehandle open, there are always a<br>
> billion ways to do something in perl.<br>
<br>
</div>I lack sufficient expertise to comment on this, but ...<br>
<div class="im"><br>
> 2. I've seen someone do a sleep(undef, undef, undef, 0.2); to wait a<br>
> quarter-second, but i can't confirm it works.<br>
<br>
</div>It's select(undef, undef, undef, 0.25). "perldoc -f select" for<br>
more information (you'll need to scroll past the "select FILEHANDLE"<br>
version).<br>
<div class="im"><br>
But I'm not sure that that's what Alex is looking for. He wrote:<br>
<br>
2. Is there a event scheduler modules I can use to schedule the sending of<br>
a message say several milisecond in the future.<br>
<br>
</div>which suggests he wants schedule the event to take place in the future,<br>
and continue doing other stuff until it triggers.<br>
<br>
Time:HiRes::ualarm lets you schedule a SIGALRM signal to be delivered<br>
after a specified time.<br>
<font color="#888888"><br>
--<br>
Keith Thompson (The_Other_Keith) <a href="mailto:kst@mib.org">kst@mib.org</a> <<a href="http://www.ghoti.net/%7Ekst" target="_blank">http://www.ghoti.net/~kst</a>><br>
Nokia<br>
"We must do something. This is something. Therefore, we must do this."<br>
-- Antony Jay and Jonathan Lynn, "Yes Minister"<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Respectfully,<br><br>Chris Hart<br>Systems Administrator<br>Extrameasures, LLC.<br>8910 University Center Lane, Suite 475<br>San Diego, CA 92122<br>Office - 858.546.1052 x32<br>
Fax - 858.546.1057<br><br>