5 * Internet daemon interface definitions
7 * Copyright © 1994 AmiTCP/IP Group,
8 * Network Solutions Development, Inc.
13 * The DaemonPort structure and its associated memory
14 * must be allocated with AllocVec call
17 struct MsgPort dp_Port
;
18 void (*dp_ExitCode
)(void);
21 #define DAEMONPORTNAME "inetd.ipc"
24 * A message associated with each launched process
26 struct DaemonMessage
{
27 struct Message dm_Msg
; /* Message name is FreeVec()'ed by inetd */
28 struct Process
*dm_Pid
; /* set by the launcher */
29 struct Segment
*dm_Seg
; /* used only if resident segment */
30 LONG dm_Id
; /* socket id */
31 LONG dm_Retval
; /* non-zero errorcode */
32 UBYTE dm_Family
; /* address/protocol family */
36 /* Daemon types, used as socket types */
37 #define DMTYPE_UNKNOWN -1
38 #define DMTYPE_INTERNAL 0 /* type is within builtin struct */
39 #define DMTYPE_STREAM SOCK_STREAM /* stream socket */
40 #define DMTYPE_DGRAM SOCK_DGRAM /* datagram socket */
41 #define DMTYPE_RAW SOCK_RAW /* raw-protocol interface */
42 #define DMTYPE_RDM SOCK_RDM /* reliably-delivered message */
43 #define DMTYPE_SEQPACKET SOCK_SEQPACKET /* sequenced packet stream */
45 /* Return values from the startup code */
47 #define DERR_OBTAIN 0xA1