4 Copyright: © 1984-1993 by Apple Computer, Inc., all rights reserved.
7 This file was auto generated by the interfacer tool. Modifications
8 must be made to the master file.
15 #ifndef __MACTCPCOMMONTYPES__
16 #include <MacTCPCommonTypes.h>
21 #define UDPBfrReturn 22
24 #define UDPMaxMTUSize 25
26 #define UDPMultiCreate 27
27 #define UDPMultiSend 28
28 #define UDPMultiRead 29
37 typedef enum UDPEventCode UDPEventCode;
39 typedef pascal void (*UDPNotifyProcPtr)(StreamPtr udpStream, unsigned short eventCode, Ptr userDataPtr, struct ICMPReport *icmpMsg);
42 uppUDPNotifyProcInfo = kPascalStackBased
43 | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(StreamPtr)))
44 | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(unsigned short)))
45 | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Ptr)))
46 | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(struct ICMPReport*)))
49 #if USESROUTINEDESCRIPTORS
50 typedef UniversalProcPtr UDPNotifyUPP;
52 #define CallUDPNotifyProc(userRoutine, udpStream, eventCode, userDataPtr, icmpMsg) \
53 CallUniversalProc((UniversalProcPtr)userRoutine, uppUDPNotifyProcInfo, udpStream, eventCode, userDataPtr, icmpMsg)
54 #define NewUDPNotifyProc(userRoutine) \
55 (UDPNotifyUPP) NewRoutineDescriptor((ProcPtr)userRoutine, uppUDPNotifyProcInfo, GetCurrentISA())
57 typedef UDPNotifyProcPtr UDPNotifyUPP;
59 #define CallUDPNotifyProc(userRoutine, udpStream, eventCode, userDataPtr, icmpMsg) \
60 (*userRoutine)(udpStream, eventCode, userDataPtr, icmpMsg)
61 #define NewUDPNotifyProc(userRoutine) \
62 (UDPNotifyUPP)(userRoutine)
65 typedef UDPNotifyProcPtr UDPNotifyProc;
67 typedef void (*UDPIOCompletionProcPtr)(struct UDPiopb *iopb);
70 uppUDPIOCompletionProcInfo = kCStackBased
71 | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(struct UDPiopb*)))
74 #if USESROUTINEDESCRIPTORS
75 typedef UniversalProcPtr UDPIOCompletionUPP;
77 #define CallUDPIOCompletionProc(userRoutine, iopb) \
78 CallUniversalProc((UniversalProcPtr)userRoutine, uppUDPIOCompletionProcInfo, iopb)
79 #define NewUDPIOCompletionProc(userRoutine) \
80 (UDPIOCompletionUPP) NewRoutineDescriptor((ProcPtr)userRoutine, uppUDPIOCompletionProcInfo, GetCurrentISA())
82 typedef UDPIOCompletionProcPtr UDPIOCompletionUPP;
84 #define CallUDPIOCompletionProc(userRoutine, iopb) \
86 #define NewUDPIOCompletionProc(userRoutine) \
87 (UDPIOCompletionUPP)(userRoutine)
90 typedef UDPIOCompletionProcPtr UDPIOCompletionProc;
92 typedef unsigned short udp_port;
94 #if defined(powerc) || defined (__powerc)
95 #pragma options align=mac68k
97 struct UDPCreatePB { /* for create and release calls */
99 unsigned long rcvBuffLen;
100 UDPNotifyProc notifyProc;
101 unsigned short localPort;
105 #if defined(powerc) || defined(__powerc)
106 #pragma options align=reset
109 typedef struct UDPCreatePB UDPCreatePB;
111 #if defined(powerc) || defined (__powerc)
112 #pragma options align=mac68k
115 unsigned short reserved;
120 unsigned short sendLength;
124 #if defined(powerc) || defined(__powerc)
125 #pragma options align=reset
128 typedef struct UDPSendPB UDPSendPB;
130 #if defined(powerc) || defined (__powerc)
131 #pragma options align=mac68k
133 struct UDPReceivePB { /* for receive and buffer return calls */
134 unsigned short timeOut;
138 unsigned short rcvBuffLen;
139 unsigned short secondTimeStamp;
141 ip_addr destHost; /* only for use with multi rcv */
142 udp_port destPort; /* only for use with multi rcv */
144 #if defined(powerc) || defined(__powerc)
145 #pragma options align=reset
148 typedef struct UDPReceivePB UDPReceivePB;
150 #if defined(powerc) || defined (__powerc)
151 #pragma options align=mac68k
154 unsigned short mtuSize;
158 #if defined(powerc) || defined(__powerc)
159 #pragma options align=reset
162 typedef struct UDPMTUPB UDPMTUPB;
164 #if defined(powerc) || defined (__powerc)
165 #pragma options align=mac68k
169 UDPIOCompletionProc ioCompletion;
177 struct UDPCreatePB create;
178 struct UDPSendPB send;
179 struct UDPReceivePB receive;
183 #if defined(powerc) || defined(__powerc)
184 #pragma options align=reset
187 typedef struct UDPiopb UDPiopb;