On Sun, 01 Dec 2002 19:07:50 +0200, voguemaster <[EMAIL PROTECTED]> wrote:
> 
> 3. Using SIGALARM. I forgot how this is implemented. Never did go into this since
> it has problems (also among platforms).

SIGALARM can be used by setting a signal handler (that does nothing).
It functions by interrupting (and thus terminating) the current IO
operation. You activate the timer by calling `alarm' (simpler, whole
seconds) or `setitimer' (more complicated, allow microseconds). I use
both `select' with timeout, and `alarm' in client-server TCP
applications.

> Regarding the speed of light, beeing a physicist myself I have to agree :-)
> The signals don't even come close to traveling at the speed of light, as any ping
> can show...

The ping proves nothing. Most of the ping delay is "computing" delay
caused by the NICs and the switches (and routers and bridges for WAN).
Some of the delay is caused by the bandwidth.

Ehud.


-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:[EMAIL PROTECTED]                  Better  Safe  Than  Sorry

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to