|
Mac OS 9
|
TCP Manager Interfaces. More...
Go to the source code of this file.
Data Structures | |
| struct | ip_addrbytes |
| struct | wdsEntry |
| struct | rdsEntry |
| struct | ICMPReport |
| struct | GetAddrParamBlock |
| struct | ICMPParamBlock |
| struct | IPParamBlock |
| struct | nbp_entry |
| struct | Enet_addr |
| struct | arp_entry |
| union | LAPStatsAddrXlation |
| struct | LAPStats |
| struct | TCPCreatePB |
| struct | TCPOpenPB |
| struct | TCPSendPB |
| struct | TCPReceivePB |
| struct | TCPClosePB |
| struct | HistoBucket |
| struct | TCPConnectionStats |
| struct | TCPStatusPB |
| struct | TCPAbortPB |
| struct | TCPParam |
| struct | TCPStats |
| struct | TCPGlobalInfoPB |
| struct | TCPiopb |
| struct | UDPCreatePB |
| struct | UDPSendPB |
| struct | UDPReceivePB |
| struct | UDPMTUPB |
| struct | UDPiopb |
Macros | |
| #define | NewGetIPIOCompletionUPP(userRoutine) |
| #define | NewIPIOCompletionUPP(userRoutine) |
| #define | NewICMPEchoNotifyUPP(userRoutine) |
| #define | NewTCPNotifyUPP(userRoutine) |
| #define | NewTCPIOCompletionUPP(userRoutine) |
| #define | NewUDPNotifyUPP(userRoutine) |
| #define | NewUDPIOCompletionUPP(userRoutine) |
| #define | DisposeGetIPIOCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeIPIOCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeICMPEchoNotifyUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeTCPNotifyUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeTCPIOCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeUDPNotifyUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | DisposeUDPIOCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | InvokeGetIPIOCompletionUPP(iopb, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppGetIPIOCompletionProcInfo, (iopb)) |
| #define | InvokeIPIOCompletionUPP(iopb, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppIPIOCompletionProcInfo, (iopb)) |
| #define | InvokeICMPEchoNotifyUPP(iopb, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppICMPEchoNotifyProcInfo, (iopb)) |
| #define | InvokeTCPNotifyUPP(tcpStream, eventCode, userDataPtr, terminReason, icmpMsg, userUPP) |
| #define | InvokeTCPIOCompletionUPP(iopb, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppTCPIOCompletionProcInfo, (iopb)) |
| #define | InvokeUDPNotifyUPP(udpStream, eventCode, userDataPtr, icmpMsg, userUPP) |
| #define | InvokeUDPIOCompletionUPP(iopb, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppUDPIOCompletionProcInfo, (iopb)) |
| #define | NewGetIPIOCompletionProc(userRoutine) NewGetIPIOCompletionUPP(userRoutine) |
| #define | NewIPIOCompletionProc(userRoutine) NewIPIOCompletionUPP(userRoutine) |
| #define | NewICMPEchoNotifyProc(userRoutine) NewICMPEchoNotifyUPP(userRoutine) |
| #define | NewTCPNotifyProc(userRoutine) NewTCPNotifyUPP(userRoutine) |
| #define | NewTCPIOCompletionProc(userRoutine) NewTCPIOCompletionUPP(userRoutine) |
| #define | NewUDPNotifyProc(userRoutine) NewUDPNotifyUPP(userRoutine) |
| #define | NewUDPIOCompletionProc(userRoutine) NewUDPIOCompletionUPP(userRoutine) |
| #define | CallGetIPIOCompletionProc(userRoutine, iopb) InvokeGetIPIOCompletionUPP(iopb, userRoutine) |
| #define | CallIPIOCompletionProc(userRoutine, iopb) InvokeIPIOCompletionUPP(iopb, userRoutine) |
| #define | CallICMPEchoNotifyProc(userRoutine, iopb) InvokeICMPEchoNotifyUPP(iopb, userRoutine) |
| #define | CallTCPNotifyProc(userRoutine, tcpStream, eventCode, userDataPtr, terminReason, icmpMsg) |
| #define | CallTCPIOCompletionProc(userRoutine, iopb) InvokeTCPIOCompletionUPP(iopb, userRoutine) |
| #define | CallUDPNotifyProc(userRoutine, udpStream, eventCode, userDataPtr, icmpMsg) InvokeUDPNotifyUPP(udpStream, eventCode, userDataPtr, icmpMsg, userRoutine) |
| #define | CallUDPIOCompletionProc(userRoutine, iopb) InvokeUDPIOCompletionUPP(iopb, userRoutine) |
Typedefs | |
| typedef UInt8 | b_8 |
| typedef UInt16 | b_16 |
| typedef UInt32 | b_32 |
| typedef b_32 | ip_addr |
| typedef struct ip_addrbytes | ip_addrbytes |
| typedef struct wdsEntry | wdsEntry |
| typedef struct rdsEntry | rdsEntry |
| typedef unsigned long | BufferPtr |
| typedef unsigned long | StreamPtr |
| typedef unsigned short | ICMPMsgType |
| typedef b_16 | ip_port |
| typedef struct ICMPReport | ICMPReport |
| typedef struct GetAddrParamBlock | GetAddrParamBlock |
| typedef struct ICMPParamBlock | ICMPParamBlock |
| typedef struct LAPStats | LAPStats |
| typedef struct IPParamBlock | IPParamBlock |
| typedef struct nbp_entry | nbp_entry |
| typedef struct Enet_addr | Enet_addr |
| typedef struct arp_entry | arp_entry |
| typedef union LAPStatsAddrXlation | LAPStatsAddrXlation |
| typedef unsigned short | TCPEventCode |
| typedef unsigned short | TCPTerminationReason |
| typedef unsigned short | eventCode |
| typedef unsigned short Ptr | userDataPtr |
| typedef unsigned short Ptr unsigned short | terminReason |
| typedef unsigned short Ptr unsigned short ICMPReport * | icmpMsg |
| typedef unsigned short | tcp_port |
| typedef struct TCPCreatePB | TCPCreatePB |
| typedef struct TCPOpenPB | TCPOpenPB |
| typedef struct TCPSendPB | TCPSendPB |
| typedef struct TCPReceivePB | TCPReceivePB |
| typedef struct TCPClosePB | TCPClosePB |
| typedef struct HistoBucket | HistoBucket |
| typedef struct TCPConnectionStats | TCPConnectionStats |
| typedef struct TCPStatusPB | TCPStatusPB |
| typedef struct TCPAbortPB | TCPAbortPB |
| typedef struct TCPParam | TCPParam |
| typedef struct TCPStats | TCPStats |
| typedef StreamPtr * | StreamPPtr |
| typedef struct TCPGlobalInfoPB | TCPGlobalInfoPB |
| typedef struct TCPiopb | TCPiopb |
| typedef unsigned short | UDPEventCode |
| typedef unsigned short | udp_port |
| typedef struct UDPCreatePB | UDPCreatePB |
| typedef struct UDPSendPB | UDPSendPB |
| typedef struct UDPReceivePB | UDPReceivePB |
| typedef struct UDPMTUPB | UDPMTUPB |
| typedef struct UDPiopb | UDPiopb |
Enumerations | |
| enum | { inProgress = 1 , ipBadLapErr = -23000 , ipBadCnfgErr = -23001 , ipNoCnfgErr = -23002 , ipLoadErr = -23003 , ipBadAddr = -23004 , connectionClosing = -23005 , invalidLength = -23006 , connectionExists = -23007 , connectionDoesntExist = -23008 , insufficientResources , invalidStreamPtr = -23010 , streamAlreadyOpen = -23011 , connectionTerminated = -23012 , invalidBufPtr = -23013 , invalidRDS = -23014 , invalidWDS = -23014 , openFailed = -23015 , commandTimeout = -23016 , duplicateSocket = -23017 } |
| enum | { ipDontFragErr = -23032 , ipDestDeadErr = -23033 , icmpEchoTimeoutErr = -23035 , ipNoFragMemErr = -23036 , ipRouteErr = -23037 , nameSyntaxErr = -23041 , cacheFault = -23042 , noResultProc = -23043 , noNameServer = -23044 , authNameErr = -23045 , noAnsErr = -23046 , dnrErr = -23047 , outOfMemory = -23048 } |
| enum | { BYTES_16WORD = 2 , BYTES_32WORD = 4 , BYTES_64WORD = 8 } |
| enum | { netUnreach = 0 , hostUnreach = 1 , protocolUnreach = 2 , portUnreach = 3 , fragReqd = 4 , sourceRouteFailed = 5 , timeExceeded = 6 , parmProblem = 7 , missingOption = 8 , lastICMPMsgType = 32767 } |
| enum | { ipctlGetAddr = 15 } |
| enum | { ipctlEchoICMP = 17 , ipctlLAPStats = 19 } |
| enum | { ARP_TABLE_SIZE = 20 } |
| enum | { NBP_TABLE_SIZE = 20 , NBP_MAX_NAME_SIZE = 16 + 10 + 2 } |
| enum | { TCPCreate = 30 , TCPPassiveOpen = 31 , TCPActiveOpen = 32 , TCPSend = 34 , TCPNoCopyRcv = 35 , TCPRcvBfrReturn = 36 , TCPRcv = 37 , TCPClose = 38 , TCPAbort = 39 , TCPStatus = 40 , TCPExtendedStat = 41 , TCPRelease = 42 , TCPGlobalInfo = 43 , TCPCtlMax = 49 } |
| enum | { TCPClosing = 1 , TCPULPTimeout = 2 , TCPTerminate = 3 , TCPDataArrival = 4 , TCPUrgent = 5 , TCPICMPReceived = 6 , lastEvent = 32767 } |
| enum | { TCPRemoteAbort = 2 , TCPNetworkFailure = 3 , TCPSecPrecMismatch = 4 , TCPULPTimeoutTerminate = 5 , TCPULPAbort = 6 , TCPULPClose = 7 , TCPServiceError = 8 , lastReason = 32767 } |
| enum | { timeoutValue = 0x80 , timeoutAction = 0x40 , typeOfService = 0x20 , precedence = 0x10 } |
| enum | { lowDelay = 0x01 , throughPut = 0x02 , reliability = 0x04 } |
| enum | { NumOfHistoBuckets = 7 } |
| enum | { UDPCreate = 20 , UDPRead = 21 , UDPBfrReturn = 22 , UDPWrite = 23 , UDPRelease = 24 , UDPMaxMTUSize = 25 , UDPStatus = 26 , UDPMultiCreate = 27 , UDPMultiSend = 28 , UDPMultiRead = 29 , UDPCtlMax = 29 } |
| enum | { UDPDataArrival = 1 , UDPICMPReceived = 2 , lastUDPEvent = 32767 } |
| enum | { uppGetIPIOCompletionProcInfo = 0x000000C1 } |
| enum | { uppIPIOCompletionProcInfo = 0x000000C1 } |
| enum | { uppICMPEchoNotifyProcInfo = 0x000000C1 } |
| enum | { uppTCPNotifyProcInfo = 0x0000EEC0 } |
| enum | { uppTCPIOCompletionProcInfo = 0x000000C1 } |
| enum | { uppUDPNotifyProcInfo = 0x00003EC0 } |
| enum | { uppUDPIOCompletionProcInfo = 0x000000C1 } |
Functions | |
| typedef | CALLBACK_API_C (void, GetIPIOCompletionProcPtr)(GetAddrParamBlock *iopb) |
| typedef | STACK_UPP_TYPE (GetIPIOCompletionProcPtr) GetIPIOCompletionUPP |
| typedef | CALLBACK_API_C (void, IPIOCompletionProcPtr)(ICMPParamBlock *iopb) |
| typedef | STACK_UPP_TYPE (IPIOCompletionProcPtr) IPIOCompletionUPP |
| typedef | CALLBACK_API_C (void, ICMPEchoNotifyProcPtr)(ICMPParamBlock *iopb) |
| typedef | STACK_UPP_TYPE (ICMPEchoNotifyProcPtr) ICMPEchoNotifyUPP |
| typedef | CALLBACK_API (void, TCPNotifyProcPtr)(StreamPtr tcpStream |
| typedef | STACK_UPP_TYPE (TCPNotifyProcPtr) TCPNotifyUPP |
| typedef | CALLBACK_API_C (void, TCPIOCompletionProcPtr)(TCPiopb *iopb) |
| typedef | STACK_UPP_TYPE (TCPIOCompletionProcPtr) TCPIOCompletionUPP |
| typedef | CALLBACK_API (void, UDPNotifyProcPtr)(StreamPtr udpStream |
| typedef | STACK_UPP_TYPE (UDPNotifyProcPtr) UDPNotifyUPP |
| typedef | CALLBACK_API_C (void, UDPIOCompletionProcPtr)(UDPiopb *iopb) |
| typedef | STACK_UPP_TYPE (UDPIOCompletionProcPtr) UDPIOCompletionUPP |
| GetIPIOCompletionUPP | NewGetIPIOCompletionUPP (GetIPIOCompletionProcPtr userRoutine) |
| IPIOCompletionUPP | NewIPIOCompletionUPP (IPIOCompletionProcPtr userRoutine) |
| ICMPEchoNotifyUPP | NewICMPEchoNotifyUPP (ICMPEchoNotifyProcPtr userRoutine) |
| TCPNotifyUPP | NewTCPNotifyUPP (TCPNotifyProcPtr userRoutine) |
| TCPIOCompletionUPP | NewTCPIOCompletionUPP (TCPIOCompletionProcPtr userRoutine) |
| UDPNotifyUPP | NewUDPNotifyUPP (UDPNotifyProcPtr userRoutine) |
| UDPIOCompletionUPP | NewUDPIOCompletionUPP (UDPIOCompletionProcPtr userRoutine) |
| void | DisposeGetIPIOCompletionUPP (GetIPIOCompletionUPP userUPP) |
| void | DisposeIPIOCompletionUPP (IPIOCompletionUPP userUPP) |
| void | DisposeICMPEchoNotifyUPP (ICMPEchoNotifyUPP userUPP) |
| void | DisposeTCPNotifyUPP (TCPNotifyUPP userUPP) |
| void | DisposeTCPIOCompletionUPP (TCPIOCompletionUPP userUPP) |
| void | DisposeUDPNotifyUPP (UDPNotifyUPP userUPP) |
| void | DisposeUDPIOCompletionUPP (UDPIOCompletionUPP userUPP) |
| void | InvokeGetIPIOCompletionUPP (GetAddrParamBlock *iopb, GetIPIOCompletionUPP userUPP) |
| void | InvokeIPIOCompletionUPP (ICMPParamBlock *iopb, IPIOCompletionUPP userUPP) |
| void | InvokeICMPEchoNotifyUPP (ICMPParamBlock *iopb, ICMPEchoNotifyUPP userUPP) |
| void | InvokeTCPNotifyUPP (StreamPtr tcpStream, unsigned short eventCode, Ptr userDataPtr, unsigned short terminReason, ICMPReport *icmpMsg, TCPNotifyUPP userUPP) |
| void | InvokeTCPIOCompletionUPP (TCPiopb *iopb, TCPIOCompletionUPP userUPP) |
| void | InvokeUDPNotifyUPP (StreamPtr udpStream, unsigned short eventCode, Ptr userDataPtr, ICMPReport *icmpMsg, UDPNotifyUPP userUPP) |
| void | InvokeUDPIOCompletionUPP (UDPiopb *iopb, UDPIOCompletionUPP userUPP) |
TCP Manager Interfaces.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| #define CallTCPNotifyProc | ( | userRoutine, | |
| tcpStream, | |||
| eventCode, | |||
| userDataPtr, | |||
| terminReason, | |||
| icmpMsg | |||
| ) |
| #define InvokeTCPNotifyUPP | ( | tcpStream, | |
| eventCode, | |||
| userDataPtr, | |||
| terminReason, | |||
| icmpMsg, | |||
| userUPP | |||
| ) |
| #define InvokeUDPNotifyUPP | ( | udpStream, | |
| eventCode, | |||
| userDataPtr, | |||
| icmpMsg, | |||
| userUPP | |||
| ) |
| #define NewGetIPIOCompletionProc | ( | userRoutine | ) | NewGetIPIOCompletionUPP(userRoutine) |
CALL_NOT_IN_CARBON support for pre-Carbon UPP routines: New...Proc and Call...Proc
| #define NewGetIPIOCompletionUPP | ( | userRoutine | ) |
no_return_value Func(4_bytes)
| #define NewICMPEchoNotifyUPP | ( | userRoutine | ) |
no_return_value Func(4_bytes)
| #define NewIPIOCompletionUPP | ( | userRoutine | ) |
no_return_value Func(4_bytes)
| #define NewTCPIOCompletionUPP | ( | userRoutine | ) |
no_return_value Func(4_bytes)
| #define NewTCPNotifyUPP | ( | userRoutine | ) |
pascal no_return_value Func(4_bytes, 2_bytes, 4_bytes, 2_bytes, 4_bytes)
| #define NewUDPIOCompletionUPP | ( | userRoutine | ) |
no_return_value Func(4_bytes)
| #define NewUDPNotifyUPP | ( | userRoutine | ) |
pascal no_return_value Func(4_bytes, 2_bytes, 4_bytes, 4_bytes)
| typedef UInt16 b_16 |
16-bit quantity
| typedef UInt32 b_32 |
32-bit quantity
| typedef UInt8 b_8 |
8-bit quantity
| anonymous enum |
Developer Notes: 0. This MacTCP header replaces what used to be defined in the following header files MacTCPCommonTypes.h GetMyIPAddr.h MiscIPPB.h TCPPB.h UDPPB.h
When the various control calls are made to the ip driver, you must
set up a NewRoutineDescriptor for every non-nil completion routine and/or notifyProc parameter. Otherwise, the 68K driver code, will not correctly call your routine.
| anonymous enum |
| anonymous enum |
| anonymous enum |
csCode to get our IP address
| anonymous enum |
number of ARP table entries
| anonymous enum |
Command codes
| anonymous enum |
ValidityFlags
| anonymous enum |
TOSFlags
| void DisposeGetIPIOCompletionUPP | ( | GetIPIOCompletionUPP | userUPP | ) |
| void DisposeICMPEchoNotifyUPP | ( | ICMPEchoNotifyUPP | userUPP | ) |
| void DisposeIPIOCompletionUPP | ( | IPIOCompletionUPP | userUPP | ) |
| void DisposeTCPIOCompletionUPP | ( | TCPIOCompletionUPP | userUPP | ) |
| void DisposeTCPNotifyUPP | ( | TCPNotifyUPP | userUPP | ) |
| void DisposeUDPIOCompletionUPP | ( | UDPIOCompletionUPP | userUPP | ) |
| void DisposeUDPNotifyUPP | ( | UDPNotifyUPP | userUPP | ) |
| void InvokeGetIPIOCompletionUPP | ( | GetAddrParamBlock * | iopb, |
| GetIPIOCompletionUPP | userUPP | ||
| ) |
| void InvokeICMPEchoNotifyUPP | ( | ICMPParamBlock * | iopb, |
| ICMPEchoNotifyUPP | userUPP | ||
| ) |
| void InvokeIPIOCompletionUPP | ( | ICMPParamBlock * | iopb, |
| IPIOCompletionUPP | userUPP | ||
| ) |
| void InvokeTCPIOCompletionUPP | ( | TCPiopb * | iopb, |
| TCPIOCompletionUPP | userUPP | ||
| ) |
| void InvokeTCPNotifyUPP | ( | StreamPtr | tcpStream, |
| unsigned short | eventCode, | ||
| Ptr | userDataPtr, | ||
| unsigned short | terminReason, | ||
| ICMPReport * | icmpMsg, | ||
| TCPNotifyUPP | userUPP | ||
| ) |
| void InvokeUDPIOCompletionUPP | ( | UDPiopb * | iopb, |
| UDPIOCompletionUPP | userUPP | ||
| ) |
| void InvokeUDPNotifyUPP | ( | StreamPtr | udpStream, |
| unsigned short | eventCode, | ||
| Ptr | userDataPtr, | ||
| ICMPReport * | icmpMsg, | ||
| UDPNotifyUPP | userUPP | ||
| ) |
| GetIPIOCompletionUPP NewGetIPIOCompletionUPP | ( | GetIPIOCompletionProcPtr | userRoutine | ) |
| ICMPEchoNotifyUPP NewICMPEchoNotifyUPP | ( | ICMPEchoNotifyProcPtr | userRoutine | ) |
| IPIOCompletionUPP NewIPIOCompletionUPP | ( | IPIOCompletionProcPtr | userRoutine | ) |
| TCPIOCompletionUPP NewTCPIOCompletionUPP | ( | TCPIOCompletionProcPtr | userRoutine | ) |
| TCPNotifyUPP NewTCPNotifyUPP | ( | TCPNotifyProcPtr | userRoutine | ) |
| UDPIOCompletionUPP NewUDPIOCompletionUPP | ( | UDPIOCompletionProcPtr | userRoutine | ) |
| UDPNotifyUPP NewUDPNotifyUPP | ( | UDPNotifyProcPtr | userRoutine | ) |