home *** CD-ROM | disk | FTP | other *** search
- /* $Id: timermsg.c,v 1.1 1993/11/17 12:21:51 too Exp $
- *
- * Copyright (c) 1993 AmiTCP/IP Group <amitcp-group@hut.fi>
- *
- * Created: Wed Nov 10 13:27:26 1993 too
- * Last modified: Wed Nov 17 14:18:17 1993 too
- */
- {
- /*
- * Timer reply... one ACTION_WAIT_CHAR request got timeout...or false
- * signal.
- */
- struct ApplPort * applport;
-
- while ((applport = (struct ApplPort *)GetMsg(timermsgport)) != NULL) {
- /*
- * Well. applport doesn't exactly point to start of ApplPort
- * structure but start of timerequest structure in it. Let's
- * calculate the correct value.
- */
- (char *)applport-= (int)(&((struct ApplPort *)0)->ap_Tr);
-
- /*
- * There must be pending ACTION_WAIT_CHAR here. Reply that no chars
- * are available.
- */
- ReplyPkt(applport->ap_Packet, 0, 0);
- applport->ap_Packet = NULL;
- }
- }
-