home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / l / inet-handler / util.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-17  |  768 b   |  39 lines

  1. /*
  2.  * util.c
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  * Copyright (c) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  7.  *              All rights reserved
  8.  *
  9.  * Created: Fri Oct 15 17:52:22 1993 too
  10.  * Last modified: Sat Oct 16 16:59:40 1993 too
  11.  *
  12.  * HISTORY
  13.  * $Log: util.c,v $
  14.  * Revision 1.1  1993/10/24  13:01:32  too
  15.  * Initial revision
  16.  *
  17.  * Revision 1.1  1993/10/24  13:01:32  too
  18.  * Initial revision
  19.  *
  20.  */
  21.  
  22. #include <exec/types.h>
  23. #include <exec/ports.h>
  24.  
  25. #include "util.h"
  26.  
  27. void initMsgPort(struct MsgPort * port, UBYTE sig, struct Task * task)
  28. {
  29.   port->mp_Node.ln_Name = NULL;
  30.   port->mp_Node.ln_Pri = 0;
  31.   port->mp_Node.ln_Type = NT_MSGPORT;
  32.  
  33.   port->mp_Flags = PA_SIGNAL;
  34.   port->mp_SigBit = sig;
  35.   port->mp_SigTask = task;
  36.  
  37.   NewList(&(port->mp_MsgList));
  38. }
  39.