revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / common / include / inetd.h
blob2c52a7fef4ec3ea884f54a82181341e1b1528200
1 #ifndef INETD_H
2 #define INETD_H \
3 "$Id$"
4 /*
5 * Internet daemon interface definitions
7 * Copyright © 1994 AmiTCP/IP Group,
8 * Network Solutions Development, Inc.
9 * All rights reserved.
12 /*
13 * The DaemonPort structure and its associated memory
14 * must be allocated with AllocVec call
16 struct DaemonPort {
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 */
33 UBYTE dm_Type;
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 */
46 #define DERR_LIB 0xA0
47 #define DERR_OBTAIN 0xA1
49 #endif /* INETD_H */