Mac OS 9
Connections.h
Go to the documentation of this file.
1 
19 #ifndef __CONNECTIONS__
20 #define __CONNECTIONS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __MACTYPES__
27 #include <MacTypes.h>
28 #endif
29 
30 #ifndef __MIXEDMODE__
31 #include <MixedMode.h>
32 #endif
33 
34 #ifndef __DIALOGS__
35 #include <Dialogs.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #if PRAGMA_IMPORT
47 #pragma import on
48 #endif
49 
50 #if PRAGMA_STRUCT_ALIGN
51 #pragma options align = mac68k
52 #elif PRAGMA_STRUCT_PACKPUSH
53 #pragma pack(push, 2)
54 #elif PRAGMA_STRUCT_PACK
55 #pragma pack(2)
56 #endif
57 
58 #if CALL_NOT_IN_CARBON
59 enum {
60  curCMVersion = 2 /* current Connection Manager version*/
61 };
62 
63 enum {
64  curConnEnvRecVers =
65  0 /* current Connection Manager Environment Record version*/
66 };
67 
68 enum {
69  /* CMErr */
70  cmGenericError = -1,
71  cmNoErr = 0,
72  cmRejected = 1,
73  cmFailed = 2,
74  cmTimeOut = 3,
75  cmNotOpen = 4,
76  cmNotClosed = 5,
77  cmNoRequestPending = 6,
78  cmNotSupported = 7,
79  cmNoTools = 8,
80  cmUserCancel = 9,
81  cmUnknownError = 11
82 };
83 
84 typedef OSErr CMErr;
85 
86 enum {
87  cmData = 1L << 0,
88  cmCntl = 1L << 1,
89  cmAttn = 1L << 2,
90  cmDataNoTimeout = 1L << 4,
91  cmCntlNoTimeout = 1L << 5,
92  cmAttnNoTimeout = 1L << 6,
93  cmDataClean = 1L << 8,
94  cmCntlClean = 1L << 9,
95  cmAttnClean = 1L << 10, /* Only for CMRecFlags (not CMChannel) in the
96  rest of this enum */
97  cmNoMenus = 1L << 16,
98  cmQuiet = 1L << 17,
99  cmConfigChanged = 1L << 18
100 };
101 
102 /* CMRecFlags and CMChannel */
103 /* Low word of CMRecFlags is same as CMChannel */
104 typedef long CMRecFlags;
105 typedef short CMChannel;
106 
107 enum {
108  cmStatusOpening = 1L << 0,
109  cmStatusOpen = 1L << 1,
110  cmStatusClosing = 1L << 2,
111  cmStatusDataAvail = 1L << 3,
112  cmStatusCntlAvail = 1L << 4,
113  cmStatusAttnAvail = 1L << 5,
114  cmStatusDRPend = 1L << 6, /* data read pending */
115  cmStatusDWPend = 1L << 7, /* data write pending */
116  cmStatusCRPend = 1L << 8, /* cntl read pending */
117  cmStatusCWPend = 1L << 9, /* cntl write pending */
118  cmStatusARPend = 1L << 10, /* attn read pending */
119  cmStatusAWPend = 1L << 11, /* attn write pending */
120  cmStatusBreakPend = 1L << 12,
121  cmStatusListenPend = 1L << 13,
122  cmStatusIncomingCallPresent = 1L << 14,
123  cmStatusReserved0 = 1L << 15
124 };
125 
126 typedef unsigned long CMStatFlags;
127 enum {
128  cmDataIn = 0,
129  cmDataOut = 1,
130  cmCntlIn = 2,
131  cmCntlOut = 3,
132  cmAttnIn = 4,
133  cmAttnOut = 5,
134  cmRsrvIn = 6,
135  cmRsrvOut = 7
136 };
137 
138 typedef unsigned short CMBufFields;
139 typedef Ptr CMBuffers[8];
140 typedef long CMBufferSizes[8];
141 typedef const long *ConstCMBufferSizesParam;
142 enum { cmSearchSevenBit = 1L << 0 };
143 
144 typedef unsigned short CMSearchFlags;
145 enum { cmFlagsEOM = 1L << 0 };
146 
147 typedef unsigned short CMFlags;
149  short version;
150  long baudRate;
151  short dataBits;
152  CMChannel channels;
153  Boolean swFlowControl;
154  Boolean hwFlowControl;
155  CMFlags flags;
156 };
157 typedef struct ConnEnvironRec ConnEnvironRec;
159 typedef struct ConnRecord ConnRecord;
160 typedef ConnRecord *ConnPtr;
161 typedef ConnPtr *ConnHandle;
162 typedef CALLBACK_API(long, ConnectionToolDefProcPtr)(ConnHandle hConn,
163  short msg, long p1,
164  long p2, long p3);
165 typedef CALLBACK_API(void, ConnectionSearchCallBackProcPtr)(ConnHandle hConn,
166  Ptr matchPtr,
167  long refNum);
168 typedef CALLBACK_API(void, ConnectionCompletionProcPtr)(ConnHandle hConn);
169 typedef CALLBACK_API(void, ConnectionChooseIdleProcPtr)(void);
170 typedef STACK_UPP_TYPE(ConnectionToolDefProcPtr) ConnectionToolDefUPP;
171 typedef STACK_UPP_TYPE(ConnectionSearchCallBackProcPtr)
172  ConnectionSearchCallBackUPP;
173 typedef STACK_UPP_TYPE(ConnectionCompletionProcPtr) ConnectionCompletionUPP;
174 typedef STACK_UPP_TYPE(ConnectionChooseIdleProcPtr) ConnectionChooseIdleUPP;
175 struct ConnRecord {
176  short procID;
177  CMRecFlags flags;
178  CMErr errCode;
179  long refCon;
180  long userData;
181  ConnectionToolDefUPP defProc;
182  Ptr config;
183  Ptr oldConfig;
184  long asyncEOM;
185  long reserved1;
186  long reserved2;
187  Ptr cmPrivate;
188  CMBuffers bufferArray;
189  CMBufferSizes bufSizes;
190  long mluField;
191  CMBufferSizes asyncCount;
192 };
193 
194 enum {
195  /* CMIOPB constants and structure */
196  cmIOPBQType = 10,
197  cmIOPBversion = 0
198 };
199 
200 struct CMIOPB {
201  QElemPtr qLink;
202  short qType; /* cmIOPBQType */
203  ConnHandle hConn;
204  Ptr theBuffer;
205  long count;
206  CMFlags flags;
207  ConnectionCompletionUPP userCompletion;
208  long timeout;
209  CMErr errCode;
210  CMChannel channel;
211  long asyncEOM;
212  long reserved1;
213  short reserved2;
214  short version; /* cmIOPBversion */
215  long refCon; /* for application */
216  long toolData1; /* for tool */
217  long toolData2; /* for tool */
218 };
219 typedef struct CMIOPB CMIOPB;
220 typedef CMIOPB *CMIOPBPtr;
221 #if CALL_NOT_IN_CARBON
230 ConnectionToolDefUPP
231 NewConnectionToolDefUPP(ConnectionToolDefProcPtr userRoutine);
232 #if !OPAQUE_UPP_TYPES
233 enum {
234  uppConnectionToolDefProcInfo = 0x0000FEF0
235 }; /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
236 #ifdef __cplusplus
237 inline ConnectionToolDefUPP
238 NewConnectionToolDefUPP(ConnectionToolDefProcPtr userRoutine) {
239  return (ConnectionToolDefUPP)NewRoutineDescriptor(
240  (ProcPtr)(userRoutine), uppConnectionToolDefProcInfo,
241  GetCurrentArchitecture());
242 }
243 #else
244 #define NewConnectionToolDefUPP(userRoutine) \
245  (ConnectionToolDefUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
246  uppConnectionToolDefProcInfo, \
247  GetCurrentArchitecture())
248 #endif
249 #endif
250 
259 ConnectionSearchCallBackUPP
260 NewConnectionSearchCallBackUPP(ConnectionSearchCallBackProcPtr userRoutine);
261 #if !OPAQUE_UPP_TYPES
262 enum {
263  uppConnectionSearchCallBackProcInfo = 0x00000FC0
264 }; /* pascal no_return_value Func(4_bytes, 4_bytes, 4_bytes) */
265 #ifdef __cplusplus
266 inline ConnectionSearchCallBackUPP
267 NewConnectionSearchCallBackUPP(ConnectionSearchCallBackProcPtr userRoutine) {
268  return (ConnectionSearchCallBackUPP)NewRoutineDescriptor(
269  (ProcPtr)(userRoutine), uppConnectionSearchCallBackProcInfo,
270  GetCurrentArchitecture());
271 }
272 #else
273 #define NewConnectionSearchCallBackUPP(userRoutine) \
274  (ConnectionSearchCallBackUPP) NewRoutineDescriptor( \
275  (ProcPtr)(userRoutine), uppConnectionSearchCallBackProcInfo, \
276  GetCurrentArchitecture())
277 #endif
278 #endif
279 
288 ConnectionCompletionUPP
289 NewConnectionCompletionUPP(ConnectionCompletionProcPtr userRoutine);
290 #if !OPAQUE_UPP_TYPES
291 enum {
292  uppConnectionCompletionProcInfo = 0x000000C0
293 }; /* pascal no_return_value Func(4_bytes) */
294 #ifdef __cplusplus
295 inline ConnectionCompletionUPP
296 NewConnectionCompletionUPP(ConnectionCompletionProcPtr userRoutine) {
297  return (ConnectionCompletionUPP)NewRoutineDescriptor(
298  (ProcPtr)(userRoutine), uppConnectionCompletionProcInfo,
299  GetCurrentArchitecture());
300 }
301 #else
302 #define NewConnectionCompletionUPP(userRoutine) \
303  (ConnectionCompletionUPP) NewRoutineDescriptor( \
304  (ProcPtr)(userRoutine), uppConnectionCompletionProcInfo, \
305  GetCurrentArchitecture())
306 #endif
307 #endif
308 
317 ConnectionChooseIdleUPP
318 NewConnectionChooseIdleUPP(ConnectionChooseIdleProcPtr userRoutine);
319 #if !OPAQUE_UPP_TYPES
320 enum {
321  uppConnectionChooseIdleProcInfo = 0x00000000
322 }; /* pascal no_return_value Func() */
323 #ifdef __cplusplus
324 inline ConnectionChooseIdleUPP
325 NewConnectionChooseIdleUPP(ConnectionChooseIdleProcPtr userRoutine) {
326  return (ConnectionChooseIdleUPP)NewRoutineDescriptor(
327  (ProcPtr)(userRoutine), uppConnectionChooseIdleProcInfo,
328  GetCurrentArchitecture());
329 }
330 #else
331 #define NewConnectionChooseIdleUPP(userRoutine) \
332  (ConnectionChooseIdleUPP) NewRoutineDescriptor( \
333  (ProcPtr)(userRoutine), uppConnectionChooseIdleProcInfo, \
334  GetCurrentArchitecture())
335 #endif
336 #endif
337 
346 void
347 DisposeConnectionToolDefUPP(ConnectionToolDefUPP userUPP);
348 #if !OPAQUE_UPP_TYPES
349 #ifdef __cplusplus
350 inline void DisposeConnectionToolDefUPP(ConnectionToolDefUPP userUPP) {
351  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
352 }
353 #else
354 #define DisposeConnectionToolDefUPP(userUPP) DisposeRoutineDescriptor(userUPP)
355 #endif
356 #endif
357 
366 void
367 DisposeConnectionSearchCallBackUPP(ConnectionSearchCallBackUPP userUPP);
368 #if !OPAQUE_UPP_TYPES
369 #ifdef __cplusplus
370 inline void
371 DisposeConnectionSearchCallBackUPP(ConnectionSearchCallBackUPP userUPP) {
372  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
373 }
374 #else
375 #define DisposeConnectionSearchCallBackUPP(userUPP) \
376  DisposeRoutineDescriptor(userUPP)
377 #endif
378 #endif
379 
388 void
389 DisposeConnectionCompletionUPP(ConnectionCompletionUPP userUPP);
390 #if !OPAQUE_UPP_TYPES
391 #ifdef __cplusplus
392 inline void DisposeConnectionCompletionUPP(ConnectionCompletionUPP userUPP) {
393  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
394 }
395 #else
396 #define DisposeConnectionCompletionUPP(userUPP) \
397  DisposeRoutineDescriptor(userUPP)
398 #endif
399 #endif
400 
409 void
410 DisposeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP);
411 #if !OPAQUE_UPP_TYPES
412 #ifdef __cplusplus
413 inline void DisposeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP) {
414  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
415 }
416 #else
417 #define DisposeConnectionChooseIdleUPP(userUPP) \
418  DisposeRoutineDescriptor(userUPP)
419 #endif
420 #endif
421 
430 long
431 InvokeConnectionToolDefUPP(ConnHandle hConn, short msg, long p1, long p2,
432  long p3, ConnectionToolDefUPP userUPP);
433 #if !OPAQUE_UPP_TYPES
434 #ifdef __cplusplus
435 inline long InvokeConnectionToolDefUPP(ConnHandle hConn, short msg, long p1,
436  long p2, long p3,
437  ConnectionToolDefUPP userUPP) {
438  return (long)CALL_FIVE_PARAMETER_UPP(userUPP, uppConnectionToolDefProcInfo,
439  hConn, msg, p1, p2, p3);
440 }
441 #else
442 #define InvokeConnectionToolDefUPP(hConn, msg, p1, p2, p3, userUPP) \
443  (long)CALL_FIVE_PARAMETER_UPP((userUPP), uppConnectionToolDefProcInfo, \
444  (hConn), (msg), (p1), (p2), (p3))
445 #endif
446 #endif
447 
456 void
457 InvokeConnectionSearchCallBackUPP(ConnHandle hConn, Ptr matchPtr, long refNum,
458  ConnectionSearchCallBackUPP userUPP);
459 #if !OPAQUE_UPP_TYPES
460 #ifdef __cplusplus
461 inline void
462 InvokeConnectionSearchCallBackUPP(ConnHandle hConn, Ptr matchPtr, long refNum,
463  ConnectionSearchCallBackUPP userUPP) {
464  CALL_THREE_PARAMETER_UPP(userUPP, uppConnectionSearchCallBackProcInfo, hConn,
465  matchPtr, refNum);
466 }
467 #else
468 #define InvokeConnectionSearchCallBackUPP(hConn, matchPtr, refNum, userUPP) \
469  CALL_THREE_PARAMETER_UPP((userUPP), uppConnectionSearchCallBackProcInfo, \
470  (hConn), (matchPtr), (refNum))
471 #endif
472 #endif
473 
482 void
484  ConnectionCompletionUPP userUPP);
485 #if !OPAQUE_UPP_TYPES
486 #ifdef __cplusplus
487 inline void InvokeConnectionCompletionUPP(ConnHandle hConn,
488  ConnectionCompletionUPP userUPP) {
489  CALL_ONE_PARAMETER_UPP(userUPP, uppConnectionCompletionProcInfo, hConn);
490 }
491 #else
492 #define InvokeConnectionCompletionUPP(hConn, userUPP) \
493  CALL_ONE_PARAMETER_UPP((userUPP), uppConnectionCompletionProcInfo, (hConn))
494 #endif
495 #endif
496 
505 void
506 InvokeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP);
507 #if !OPAQUE_UPP_TYPES
508 #ifdef __cplusplus
509 inline void InvokeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP) {
510  CALL_ZERO_PARAMETER_UPP(userUPP, uppConnectionChooseIdleProcInfo);
511 }
512 #else
513 #define InvokeConnectionChooseIdleUPP(userUPP) \
514  CALL_ZERO_PARAMETER_UPP((userUPP), uppConnectionChooseIdleProcInfo)
515 #endif
516 #endif
517 
518 #endif /* CALL_NOT_IN_CARBON */
519 
520 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
521 /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
522 #define NewConnectionToolDefProc(userRoutine) \
523  NewConnectionToolDefUPP(userRoutine)
524 #define NewConnectionSearchCallBackProc(userRoutine) \
525  NewConnectionSearchCallBackUPP(userRoutine)
526 #define NewConnectionCompletionProc(userRoutine) \
527  NewConnectionCompletionUPP(userRoutine)
528 #define NewConnectionChooseIdleProc(userRoutine) \
529  NewConnectionChooseIdleUPP(userRoutine)
530 #define CallConnectionToolDefProc(userRoutine, hConn, msg, p1, p2, p3) \
531  InvokeConnectionToolDefUPP(hConn, msg, p1, p2, p3, userRoutine)
532 #define CallConnectionSearchCallBackProc(userRoutine, hConn, matchPtr, refNum) \
533  InvokeConnectionSearchCallBackUPP(hConn, matchPtr, refNum, userRoutine)
534 #define CallConnectionCompletionProc(userRoutine, hConn) \
535  InvokeConnectionCompletionUPP(hConn, userRoutine)
536 #define CallConnectionChooseIdleProc(userRoutine) \
537  InvokeConnectionChooseIdleUPP(userRoutine)
538 #endif /* CALL_NOT_IN_CARBON */
539 
540 #endif /* CALL_NOT_IN_CARBON */
541 
542 #if CALL_NOT_IN_CARBON
551 CMErr
552 InitCM(void);
553 
562 Handle
564 
573 short
575 
576 #endif /* CALL_NOT_IN_CARBON */
577 
578 #if CALL_NOT_IN_CARBON
588 CMNew(short procID, CMRecFlags flags, ConstCMBufferSizesParam desiredSizes,
589  long refCon, long userData);
590 
591 #endif /* CALL_NOT_IN_CARBON */
592 
593 #if CALL_NOT_IN_CARBON
602 void
604 
613 CMErr
614 CMListen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor,
615  long timeout);
616 
625 CMErr
626 CMAccept(ConnHandle hConn, Boolean accept);
627 
636 CMErr
637 CMOpen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor,
638  long timeout);
639 
648 CMErr
649 CMClose(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor,
650  long timeout, Boolean now);
651 
660 CMErr
662 
671 CMErr
672 CMStatus(ConnHandle hConn, CMBufferSizes sizes, CMStatFlags *flags);
673 
682 void
684 
693 void
695 
704 void
705 CMBreak(ConnHandle hConn, long duration, Boolean async,
706  ConnectionCompletionUPP completor);
707 
716 CMErr
717 CMRead(ConnHandle hConn, void *theBuffer, long *toRead, CMChannel theChannel,
718  Boolean async, ConnectionCompletionUPP completor, long timeout,
719  CMFlags *flags);
720 
729 CMErr
730 CMWrite(ConnHandle hConn, const void *theBuffer, long *toWrite,
731  CMChannel theChannel, Boolean async, ConnectionCompletionUPP completor,
732  long timeout, CMFlags flags);
733 
742 CMErr
743 CMIOKill(ConnHandle hConn, short which);
744 
753 void
754 CMActivate(ConnHandle hConn, Boolean activate);
755 
764 void
765 CMResume(ConnHandle hConn, Boolean resume);
766 
775 Boolean
776 CMMenu(ConnHandle hConn, short menuID, short item);
777 
786 Boolean
788 
797 void
798 CMDefault(Ptr *theConfig, short procID, Boolean allocate);
799 
808 Handle
809 CMSetupPreflight(short procID, long *magicCookie);
810 
819 Boolean
820 CMSetupFilter(short procID, const void *theConfig, short count,
821  DialogRef theDialog, EventRecord *theEvent, short *theItem,
822  long *magicCookie);
823 
832 void
833 CMSetupSetup(short procID, const void *theConfig, short count,
834  DialogRef theDialog, long *magicCookie);
835 
844 void
845 CMSetupItem(short procID, const void *theConfig, short count,
846  DialogRef theDialog, short *theItem, long *magicCookie);
847 
856 void
857 CMSetupXCleanup(short procID, const void *theConfig, short count,
858  DialogRef theDialog, Boolean OKed, long *magicCookie);
859 
868 void
869 CMSetupPostflight(short procID);
870 
879 Ptr
881 
890 short
891 CMSetConfig(ConnHandle hConn, const void *thePtr);
892 
901 OSErr
902 CMIntlToEnglish(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr,
903  short language);
904 
913 OSErr
914 CMEnglishToIntl(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr,
915  short language);
916 
925 long
926 CMAddSearch(ConnHandle hConn, ConstStr255Param theString, CMSearchFlags flags,
927  ConnectionSearchCallBackUPP callBack);
928 
937 void
938 CMRemoveSearch(ConnHandle hConn, long refnum);
939 
948 void
950 
959 CMErr
961 
970 short
971 CMChoose(ConnHandle *hConn, Point where, ConnectionChooseIdleUPP idle);
972 
981 void
983 
992 void
993 CMGetToolName(short procID, Str255 name);
994 
1003 short
1004 CMGetProcID(ConstStr255Param name);
1005 
1014 void
1015 CMSetRefCon(ConnHandle hConn, long refCon);
1016 
1025 long
1027 
1036 long
1038 
1047 void
1048 CMSetUserData(ConnHandle hConn, long userData);
1049 
1058 void
1059 CMGetErrorString(ConnHandle hConn, short id, Str255 errMsg);
1060 
1069 CMErr
1070 CMNewIOPB(ConnHandle hConn, CMIOPBPtr *theIOPB);
1071 
1080 CMErr
1082 
1091 CMErr
1092 CMPBRead(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async);
1093 
1102 CMErr
1103 CMPBWrite(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async);
1104 
1113 CMErr
1115 
1116 #endif /* CALL_NOT_IN_CARBON */
1117 
1118 #if PRAGMA_STRUCT_ALIGN
1119 #pragma options align = reset
1120 #elif PRAGMA_STRUCT_PACKPUSH
1121 #pragma pack(pop)
1122 #elif PRAGMA_STRUCT_PACK
1123 #pragma pack()
1124 #endif
1125 
1126 #ifdef PRAGMA_IMPORT_OFF
1127 #pragma import off
1128 #elif PRAGMA_IMPORT
1129 #pragma import reset
1130 #endif
1131 
1132 #ifdef __cplusplus
1133 }
1134 #endif
1135 
1136 #endif /* __CONNECTIONS__ */
Set up for compiler independent conditionals.
CMErr CMDisposeIOPB(ConnHandle hConn, CMIOPBPtr theIOPB)
long InvokeConnectionToolDefUPP(ConnHandle hConn, short msg, long p1, long p2, long p3, ConnectionToolDefUPP userUPP)
void InvokeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP)
void DisposeConnectionChooseIdleUPP(ConnectionChooseIdleUPP userUPP)
CMErr CMPBIOKill(ConnHandle hConn, CMIOPBPtr theIOPB)
void CMGetToolName(short procID, Str255 name)
void CMClearSearch(ConnHandle hConn)
short CMChoose(ConnHandle *hConn, Point where, ConnectionChooseIdleUPP idle)
Boolean CMValidate(ConnHandle hConn)
Boolean CMMenu(ConnHandle hConn, short menuID, short item)
short CMSetConfig(ConnHandle hConn, const void *thePtr)
ConnectionChooseIdleUPP NewConnectionChooseIdleUPP(ConnectionChooseIdleProcPtr userRoutine)
ConnectionCompletionUPP NewConnectionCompletionUPP(ConnectionCompletionProcPtr userRoutine)
void InvokeConnectionCompletionUPP(ConnHandle hConn, ConnectionCompletionUPP userUPP)
CMErr CMIOKill(ConnHandle hConn, short which)
void CMActivate(ConnHandle hConn, Boolean activate)
Handle CMSetupPreflight(short procID, long *magicCookie)
void CMIdle(ConnHandle hConn)
CMErr CMStatus(ConnHandle hConn, CMBufferSizes sizes, CMStatFlags *flags)
void CMSetUserData(ConnHandle hConn, long userData)
void InvokeConnectionSearchCallBackUPP(ConnHandle hConn, Ptr matchPtr, long refNum, ConnectionSearchCallBackUPP userUPP)
void CMGetErrorString(ConnHandle hConn, short id, Str255 errMsg)
void CMRemoveSearch(ConnHandle hConn, long refnum)
CMErr CMOpen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout)
CMErr CMRead(ConnHandle hConn, void *theBuffer, long *toRead, CMChannel theChannel, Boolean async, ConnectionCompletionUPP completor, long timeout, CMFlags *flags)
void CMDispose(ConnHandle hConn)
CMErr CMClose(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout, Boolean now)
short CMGetCMVersion(void)
void DisposeConnectionCompletionUPP(ConnectionCompletionUPP userUPP)
long CMAddSearch(ConnHandle hConn, ConstStr255Param theString, CMSearchFlags flags, ConnectionSearchCallBackUPP callBack)
long CMGetUserData(ConnHandle hConn)
void CMSetupPostflight(short procID)
void DisposeConnectionToolDefUPP(ConnectionToolDefUPP userUPP)
CMErr CMAbort(ConnHandle hConn)
OSErr CMIntlToEnglish(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr, short language)
CMErr InitCM(void)
OSErr CMEnglishToIntl(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr, short language)
short CMGetProcID(ConstStr255Param name)
ConnectionToolDefUPP NewConnectionToolDefUPP(ConnectionToolDefProcPtr userRoutine)
void CMSetRefCon(ConnHandle hConn, long refCon)
ConnectionSearchCallBackUPP NewConnectionSearchCallBackUPP(ConnectionSearchCallBackProcPtr userRoutine)
void CMSetupSetup(short procID, const void *theConfig, short count, DialogRef theDialog, long *magicCookie)
void DisposeConnectionSearchCallBackUPP(ConnectionSearchCallBackUPP userUPP)
Ptr CMGetConfig(ConnHandle hConn)
CMErr CMListen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout)
CMErr CMWrite(ConnHandle hConn, const void *theBuffer, long *toWrite, CMChannel theChannel, Boolean async, ConnectionCompletionUPP completor, long timeout, CMFlags flags)
long CMGetRefCon(ConnHandle hConn)
void CMReset(ConnHandle hConn)
void CMSetupXCleanup(short procID, const void *theConfig, short count, DialogRef theDialog, Boolean OKed, long *magicCookie)
CMErr CMNewIOPB(ConnHandle hConn, CMIOPBPtr *theIOPB)
CMErr CMPBWrite(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async)
Handle CMGetVersion(ConnHandle hConn)
ConnHandle CMNew(short procID, CMRecFlags flags, ConstCMBufferSizesParam desiredSizes, long refCon, long userData)
CMErr CMGetConnEnvirons(ConnHandle hConn, ConnEnvironRec *theEnvirons)
CMErr CMAccept(ConnHandle hConn, Boolean accept)
void CMEvent(ConnHandle hConn, const EventRecord *theEvent)
void CMDefault(Ptr *theConfig, short procID, Boolean allocate)
Boolean CMSetupFilter(short procID, const void *theConfig, short count, DialogRef theDialog, EventRecord *theEvent, short *theItem, long *magicCookie)
void CMResume(ConnHandle hConn, Boolean resume)
CMErr CMPBRead(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async)
void CMSetupItem(short procID, const void *theConfig, short count, DialogRef theDialog, short *theItem, long *magicCookie)
void CMBreak(ConnHandle hConn, long duration, Boolean async, ConnectionCompletionUPP completor)
GetTime & now
Get current date and time in DateTimeRec format.
Definition: DateTimeUtils.h:539
Dialog Manager interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Mixed Mode Manager Interfaces.
#define CALL_ZERO_PARAMETER_UPP(upp, procInfo)
Definition: MixedMode.h:790
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Definition: Connections.h:200
Definition: Connections.h:148
Definition: Connections.h:175
Definition: Events.h:224
Definition: Quickdraw.h:1648
Definition: MacTypes.h:520
Definition: OSUtils.h:131