Open Transport Reference
PDF
Overview
Functions by Task
Initializing and Closing Open Transport
Creating, Cloning, and Disposing of a Configuration Structure
Opening and Closing Providers
Controlling a Provider’s Modes of Operation
Using Notifier Functions with Providers
Sending Module-Specific Commands to Providers
Creating Endpoints
Binding and Unbinding Endpoints
Obtaining Information About an Endpoint
Allocating Structures for Endpoints
Determining if Bytes Are Available for Endpoints
Functions for Connectionless Transactionless Endpoints
Establishing Connection for Endpoints
Functions for Connection-Oriented Transactionless Endpoints
Tearing Down an Endpoint Connection
Checking Synchronous Calls
Working With Timer Tasks
Working With Deferred Tasks
Creating Mappers
Registering and Deleting Names with Mappers
Looking Up Names for Mappers
Determining and Changing Option Values
Finding Options
Getting Information About Ports
Registering New Ports
Registering as a Client
Allocating and Freeing Memory
Memory Manipulation Utility Functions
Idling and Delaying Processing
String Manipulation Utility Functions
Timestamp Utility Functions
OTLIFO List Utility Functions
OTFIFO List Utility Functions
Adding and Removing List Elements
Atomic Operations
Handling No-Copy Receives
Resolving Internet Addresses
Opening a TCP/IP Service Provider
Getting Information About an Internet Host
Retrieving DNS Query Information
Internet Address Utilities
Single Link Multi-Homing
AppleTalk Utility Functions
Opening an AppleTalk Service Provider
Obtaining Information About Zones
Obtaining Information About Your AppleTalk Environment
Miscellaneous Functions
Callbacks by Task
Notifier Callbacks
System, Timer, and Deferred Task Callbacks
Linked List Callbacks
Miscellaneous Callbacks
Callbacks
admin_t
bufcallp_t
bufcall_t
closeOld_t
closep_t
esbbcallProc
FreeFuncType
old_closep_t
old_openp_t
openOld_t
openp_t
OTAllocMemProcPtr
OTCanConfigureProcPtr
OTCFConfigureProcPtr
OTCFCreateStreamProcPtr
OTCFHandleSystemEventProcPtr
OTCreateConfiguratorProcPtr
OTGateProcPtr
OTGetPortIconProcPtr
OTGetPortNameProcPtr
OTHashProcPtr
OTHashSearchProcPtr
OTListSearchProcPtr
OTNotifyProcPtr
OTProcessProcPtr
OTSetupConfiguratorProcPtr
OTSMCompleteProcPtr
OTStateProcPtr
putp_t
srvp_t
Data Types
AppleTalkInfo
ATSvcRef
bandinfo
boolean_p
caddr_t
CCMiscInfo
CFMLibraryInfo
char_p
copyreq
copyresp
cred
cred_t
datab
datab_db_f
dblk_t
DDPAddress
DDPNBPAddress
dev_t
dl_attach_req_t
dl_bind_ack_t
dl_bind_req_t
dl_connect_con_t
dl_connect_ind_t
dl_connect_req_t
dl_connect_res_t
dl_data_ack_ind_t
dl_data_ack_req_t
dl_data_ack_status_ind_t
dl_detach_req_t
dl_disabmulti_req_t
dl_disconnect_ind_t
dl_disconnect_req_t
dl_enabmulti_req_t
dl_error_ack_t
dl_get_statistics_ack_t
dl_get_statistics_req_t
dl_info_ack_t
dl_info_req_t
dl_ok_ack_t
dl_phys_addr_ack_t
dl_phys_addr_req_t
DL_primitives
dl_priority_t
dl_promiscoff_req_t
dl_promiscon_req_t
dl_protect_t
dl_qos_cl_range1_t
dl_qos_cl_sel1_t
dl_qos_co_range1_t
dl_qos_co_sel1_t
dl_reply_ind_t
dl_reply_req_t
dl_reply_status_ind_t
dl_reply_update_req_t
dl_reply_update_status_ind_t
dl_reset_con_t
dl_reset_ind_t
dl_reset_req_t
dl_reset_res_t
dl_resilience_t
dl_set_phys_addr_req_t
dl_subs_bind_ack_t
dl_subs_bind_req_t
dl_subs_unbind_req_t
dl_test_con_t
dl_test_ind_t
dl_test_req_t
dl_test_res_t
dl_through_t
dl_token_ack_t
dl_token_req_t
dl_transdelay_t
dl_uderror_ind_t
dl_udqos_req_t
dl_unbind_req_t
dl_unitdata_ind_t
dl_unitdata_req_t
dl_xid_con_t
dl_xid_ind_t
dl_xid_req_t
dl_xid_res_t
DNS Address Structure
DNS Query Information Structure
EndpointRef
EnetPacketHeader
free_rtn
frtn_t
gid_t
Internet Address Structure
InetDHCPOption
InetDomainName
InetHost
Internet Host Information Sructure
Internet Interface Information Structure
Internet Mail Exchange Structure
InetPort
InetSvcRef
InetSysInfo
install_info
int_t
iocblk
LCPEcho
linkblk
log_ctl
major_t
MapperRef
mblk_t
minor_t
module_info
module_stat
MPS_INTR_STATE
msgb
NBPAddress
NBPEntity
netbuf
ot_bind
ot_optmgmt
OTAddress
OTAddressType
OTAutopushInfo
OTBand
OTBooleanParam
No-Copy Receive Buffer Structure
Buffer Information Structure
OTByteCount
OTClient
OTClientContextPtr
OTClientList
OTClientName
OTCommand
OTConfigurationRef
OTData Structure
OTDataSize
OTDeferredTaskRef
OTEventCode
OTError
OTGate
OTHashList
OTInt32
OTISDNAddress
OTItemCount
LIFO List Structure
OTLink
FIFO List Structure
OTListSearchUPP
Lock Data Type
OTNameID
OTNotifyUPP
OTPCIInfo
OTPortCloseStruct
The Port Structure
OTPortRef
OTProcessUPP
OTQLen
OTReadInfo
OTReason
OTResourceLocator
OTResult
OTScriptInfo
OTSequence
OTSInt16Param
OTSInt8Param
OTSlotNumber
OTStateMachine
OTStateMachineDataPad
OTSystemTaskRef
OTTimeout
OTTimerTask
Timestamp Data Type
OTUInt16Param
OTUInt32
OTUInt8Param
OTUnixErr
OTXTILevel
OTXTIName
pollfd
PollRef
PPPMRULimits
ProviderRef
q_xtra
qband
qband_t
qfields_t
qinit
queue
queue_q_u
queue_t
short_p
sqh_s
sth_s
str_list
str_mlist
strbuf
StreamRef
streamtab
strfdinsert
strioctl
stroptions
strpeek
strpfp
strpmsg
strrecvfd
T_addr_ack
T_addr_req
T_bind_ack
T_bind_req
t_call
T_cancelreply_req
T_cancelrequest_req
T_conn_con
T_conn_ind
T_conn_req
T_conn_res
T_data_ind
T_data_req
T_delname_req
t_discon
T_discon_ind
T_discon_req
T_error_ack
T_event_ind
T_exdata_ind
T_exdata_req
t_info
T_info_ack
T_info_req
The Keepalive Structure
The Linger Structure
T_lkupname_con
T_lkupname_req
T_MIB_ack
T_MIB_req
T_ok_ack
t_opthdr
T_optmgmt_ack
T_optmgmt_req
T_ordrel_ind
T_ordrel_req
T_primitives
T_regname_ack
T_regname_req
t_reply
T_reply_ack
T_reply_ind
T_reply_req
t_request
T_request_ind
T_request_req
T_resolveaddr_ack
T_resolveaddr_req
T_sequence_ack
T_stream_timer
T_stream_timer_1
t_uderr
T_uderror_ind
T_unbind_req
t_unitdata
T_unitdata_ind
T_unitdata_req
t_unitreply
T_unitreply_ack
T_unitreply_ind
T_unitreply_req
t_unitrequest
T_unitrequest_ind
T_unitrequest_req
T8022Address
T8022FullPacketHeader
T8022Header
T8022SNAPHeader
TBind
TCall
TDiscon
TEndpointInfo
IP Multicast Address Structure
TLookupBuffer
TLookupReply
TLookupRequest
TNetbuf
The TOption Structure
The TOptionHeader Structure
The Option Management Structure
TOTConfiguratorRef
TPortRecord
trace_ids
TRegisterReply
TRegisterRequest
TReply
TRequest
TUDErr
TUnitData
TUnitReply
TUnitRequest
uchar_p
uid_t
uint_t
ushort_p
Constants
AF_8022
AF_ATALK_FAMILY
AF_DNS
AF_INET
AF_ISDN
ANYMARK
ATALK_IOC_FULLSELFSEND
ATK_DDP
BPRI_LO
CE_CONT
CLONEOPEN
COM_ISDN
COM_PPP
COM_SERIAL
DDP_OPT_CHECKSUM
DDP_OPT_HOPCOUNT
DL_ACCESS
DL_AUTO_XID
DL_CMD_MASK
DL_CODLS
DL_CONREJ_DEST_UNKNOWN
DL_CSMACD
DL_CURRENT_VERSION
DL_FACT_PHYS_ADDR
DL_INFO_REQ
DL_INFO_REQ_SIZE
DL_IOC_HDR_INFO
DL_NONE
DL_PEER_BIND
DL_POLL_FINAL
DL_PROMISC_OFF
DL_PROMISC_PHYS
DL_PROVIDER
DL_QOS_CO_RANGE1
DL_RESET_FLOW_CONTROL
DL_RQST_RSP
DL_STYLE1
DL_UNATTACHED
DL_UNKNOWN
DVMRP_INIT
EAddrType
EPERM
FLUSHALL
FLUSHR
FMNAMESZ
I_NREAD
I_OTGetMiscellaneousEvents
I_OTISDNAlerting
I_SAD_SAP
I_SetSerialDTR
I_TRCLOG
INET_IP
INFPSZ
INFTIM
IP_OPTIONS
IPCP_OPT_GETREMOTEPROTOADDR
ISDN_OPT_COMMTYPE
k8022BasicAddressLength
kAF_ISDN
kAllATalkRoutersDown
kAllDHCPOptions
kAppleTalkEvent
kARARouterOnline
kATalkInfoIsExtended
kCCReminderTimerDisabled
kDDPAddressLength
kDefaultAppleTalkServicesPath
kDefaultInetInterface
kDefaultInternetServicesPath
kE164Address
kECHO_TSDU
kEnetPacketHeaderLength
kFirstMinorNumber
kInetInterfaceInfoVersion
kIP_OPTIONS
kIPCPTCPHdrCompressionDisabled
kISDNModuleID
kMaxHostAddrs
Port-Related Constants
kMaxServices
kMulticastLength
kNBPMaxNameLength
kNetbufDataIsOTData
kO_ASYNC
kOTAnyInetAddress
kOTAutopushMax
kOTCFMClass
kOTDefaultConfigurator
kOTFLUSHBAND
Port Framing Capabilities
kOTGenericName
kOTGetDataSymbol
kOTInitialScan
kOTInvalidPortRef
kOTInvalidRef
kOTInvalidStreamRef
kOTISDNDefaultCommType
kOTISDNFramingTransparent
kOTISDNFramingTransparentSupported
kOTISDNMaxPhoneSize
kOTISDNMaxUserDataSize
kOTISDNNot56KAdaptation
kOTISDNTelephoneALaw
kOTISDNUnallocatedNumber
kOTLastSlotNumber
kOTLvlFatal
kOTMinimumTimerValue
kOTModIsDriver
kOTNetbufDataIsOTBufferStar
kOTNetbufIsRawMode
kOTNoMemoryConfigurationPtr
kOTNoMessagesAvailable
kOTOptionHeaderSize
kOTPCINoErrorStayLoaded
Port Flags
Port Additional Flags
kOTPrintOnly
kOTRawRcvOn
kOTSerialDefaultBaudRate
kOTSerialFramingAsync
kOTSerialSwOverRunErr
kOTSerialXOnOffInputHandshake
kOTSpecificConfigPass
kOTT_BIND_REQ
kOTT_TIMER_REQ
kOTTRANSPARENT
kPPPAsyncMapCharsNone
kPPPCompressionDisabled
kPPPConnectionStatusDialogsFlag
kPPPConnectionStatusIdle
kPPPEvent
kPPPMaxIDLength
kPPPMinMRU
kPPPNoOutAuthentication
kPPPScriptTypeModem
kPPPStateInitial
kRAProductClientOnly
kSAP_ONE
kSerialABModuleID
kSIGHUP
kT_UNSPEC
kT8022HeaderLength
kT8022ModuleID
kZIPMaxZoneLength
LNK_ENET
LOGMSGSZ
M_MI
MIOC_ISDN
MIOC_STREAMIO
MORECTL
MSG_HIPRI
MSGMARK
MUXID_ALL
NOERROR
O_ASYNC
OPT_ADDMCAST
Bus Type Constants
Hardware Device Types
OTInitializationFlags
OTOpenFlags
OTPacketType
Endpoint Service Types
Endpoint States
ParityOptionValues
QB_FULL
qfields
QNORM
QPCTL
QREADR
RNORM
RPROTNORM
RS_EXDATA
RS_HIPRI
S_INPUT
SENDZERO
SERIAL_OPT_BAUDRATE
SIGHUP
SL_FATAL
SNDZERO
SO_ALL
SQLVL_QUEUE
STRCANON
STRCTLSZ
T_ADDR
T_ATALKBADROUTEREVENT
Structure Types
T_DNRSTRINGTOADDRCOMPLETE
T_GARBAGE
T_INFINITE
Event Codes
Open Transport Flags and Status Codes
T_NOTOS
T_NULL
T_ROUTINE
Endpoint Flags
T_UNSPEC
T_YES
TCP_NODELAY
TE_OPENED
TS_UNBND
TSUCCESS
UDP_CHECKSUM
XTI-Level Options and Generic Options
XTI_GENERIC
Result Codes
Appendix A: Deprecated Open Transport Functions
Deprecated in Mac OS X v10.4
CloseOpenTransportInContext
DisposeOTListSearchUPP
DisposeOTNotifyUPP
DisposeOTProcessUPP
InitOpenTransportInContext
InvokeOTListSearchUPP
InvokeOTNotifyUPP
InvokeOTProcessUPP
NewOTListSearchUPP
NewOTNotifyUPP
NewOTProcessUPP
OTAccept
OTAckSends
OTAddFirst
OTAddLast
OTAllocInContext
OTAllocMemInContext
OTAsyncOpenAppleTalkServicesInContext
OTAsyncOpenEndpointInContext
OTAsyncOpenInternetServicesInContext
OTAsyncOpenMapperInContext
OTATalkGetInfo
OTATalkGetLocalZones
OTATalkGetMyZone
OTATalkGetZoneList
OTAtomicAdd16
OTAtomicAdd32
OTAtomicAdd8
OTAtomicClearBit
OTAtomicSetBit
OTAtomicTestBit
OTBind
OTBufferDataSize
OTCancelSynchronousCalls
OTCancelTimerTask
OTCanMakeSyncCall
OTClearBit
OTCloneConfiguration
OTCloseProvider
OTCompareAndSwap16
OTCompareAndSwap32
OTCompareAndSwap8
OTCompareAndSwapPtr
OTCompareDDPAddresses
OTConnect
OTCountDataBytes
OTCreateConfiguration
OTCreateDeferredTaskInContext
OTCreatePortRef
OTCreateTimerTaskInContext
OTDelay
OTDeleteName
OTDeleteNameByID
OTDequeue
OTDestroyConfiguration
OTDestroyDeferredTask
OTDestroyTimerTask
OTDontAckSends
OTElapsedMicroseconds
OTElapsedMilliseconds
OTEnqueue
OTEnterNotifier
OTExtractNBPName
OTExtractNBPType
OTExtractNBPZone
OTFindAndRemoveLink
OTFindLink
OTFindOption
OTFindPort
OTFindPortByRef
OTFree
OTFreeMem
OTGetBusTypeFromPortRef
OTGetClockTimeInSecs
OTGetDeviceTypeFromPortRef
OTGetEndpointInfo
OTGetEndpointState
OTGetFirst
OTGetIndexedLink
OTGetIndexedPort
OTGetLast
OTGetNBPEntityLengthAsAddress
OTGetProtAddress
OTGetSlotFromPortRef
OTGetTimeStamp
OTIdle
OTInetAddressToName
OTInetGetInterfaceInfo
OTInetGetSecondaryAddresses
OTInetHostToString
OTInetMailExchange
OTInetQuery
OTInetStringToAddress
OTInetStringToHost
OTInetSysInfo
OTInitDDPAddress
OTInitDDPNBPAddress
OTInitDNSAddress
OTInitInetAddress
OTInitNBPAddress
OTInitNBPEntity
OTInstallNotifier
OTIoctl
OTIsAckingSends
OTIsBlocking
OTIsInList
OTIsSynchronous
OTLeaveNotifier
OTLIFODequeue
OTLIFOEnqueue
OTLIFOStealList
OTListen
OTLook
OTLookupName
OTMemcmp
OTMemcpy
OTMemmove
OTMemset
OTMemzero
OTNextOption
OTOpenAppleTalkServicesInContext
OTOpenEndpointInContext
OTOpenInternetServicesInContext
OTOpenMapperInContext
OTOptionManagement
OTRcv
OTRcvConnect
OTRcvDisconnect
OTRcvOrderlyDisconnect
OTRcvUData
OTRcvUDErr
OTReadBuffer
OTRegisterAsClientInContext
OTRegisterName
OTReleaseBuffer
OTRemoveFirst
OTRemoveLast
OTRemoveLink
OTRemoveNotifier
OTResolveAddress
OTReverseList
OTScheduleDeferredTask
OTScheduleTimerTask
OTSetAddressFromNBPEntity
OTSetAddressFromNBPString
OTSetAsynchronous
OTSetBit
OTSetBlocking
OTSetBusTypeInPortRef
OTSetDeviceTypeInPortRef
OTSetFirstClearBit
OTSetNBPEntityFromAddress
OTSetNBPName
OTSetNBPType
OTSetNBPZone
OTSetNonBlocking
OTSetSynchronous
OTSnd
OTSndDisconnect
OTSndOrderlyDisconnect
OTSndUData
OTStrCat
OTStrCopy
OTStrEqual
OTStrLength
OTSubtractTimeStamps
OTTestBit
OTTimeStampInMicroseconds
OTTimeStampInMilliseconds
OTUnbind
OTUnregisterAsClientInContext
OTUseSyncIdleEvents
Appendix B: Unsupported Functions
Revision History
Index