📄 tpi.7.man
字号:
'\" rtp.\" -*- nroff -*- vim: ft=nroff noautoindent nocindent nosmartindent.\".\" @(#) tpi.7.man,v 0.9.2.4 2004/05/16 02:35:50 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004 OpenSS7 Corporation <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date. The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein. The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" -------------------------------------------------------------------------.\".\" U.S. GOVERNMENT RESTRICTED RIGHTS. If you are licensing this Software.\" on behalf of the U.S. Government ("Government"), the following.\" provisions apply to you. If the Software is supplied by the Department.\" of Defense ("DoD"), it is classified as "Commercial Computer Software".\" under paragraph 252.227-7014 of the DoD Supplement to the Federal.\" Acquisition Regulations ("DFARS") (or any successor regulations) and the.\" Government is acquiring only the license rights granted herein (the.\" license rights customarily provided to non-Government users). If the.\" Software is supplied to any unit or agency of the Government other than.\" DoD, it is classified as "Restricted Computer Software" and the.\" Government's rights in the Software are defined in paragraph 52.227-19.\" of the Federal Acquisition Regulations ("FAR") (or any success.\" regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the.\" NASA Supplement to the FAR (or any successor regulations)..\".\" =========================================================================.\" .\" Commercial licensing and support of this software is available from.\" OpenSS7 Corporation at a fee. See http://www.openss7.com/.\" .\" =========================================================================.\".\" Last Modified 2004/05/16 02:35:50 by brian.\".\" =========================================================================.so strxnet.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase strxnet.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH TPI 7 "2004/05/16 02:35:50" "strxnet-0_9_2-4" "Linux STREAMS".SH NAME.B tpi\- Transport Provider Interface.SH SYNOPSIS.PP.B #include <sys/tpi.h>.HP.BI "int " tpi_stream " = open(" tpi_device ", " flags );.HP.BI "int " tpi_xtistr " = t_open(" tpi_device ", " flags);.HP.BI "int " tpi_socket " = socket(" pfamily ", " socktype ", " protocol );.SH DESCRIPTION.PP.\".\".\".\".\".\".PPTo support a framework for providing networking products in the.BR UNIX \(rgsystem, an effort is underway to define service interfaces that map tostrategic levels of the Open Systems Interconnection (OSI) Reference Model.These service interfaces hide implementation details of a particular servicefrom the consumer of the service. This enables system programmers to developsoftware independent of the particular protocol that provides a specificservice. The interfaces being specified for.BR UNIX \(rgSystem V are defined within the.IR STREAMS (4)environment. This document specifies a kernel-level interface that supportsthe services of the Transport Layer for connection-mode and connectionlessmode services. This specification applies to System V Release 4.2 ES/MP..SS "Transport Provider Interface".PP.PPThe transport interface defines a message interface to a transport providerimplemented under.IR STREAMS (4).(It is assumed that the reader of this document is familiar with the concept.IR STREAMS (4).)This version of the transport provider interface supports the XPG4 version ofthe X/Open Transport Interface (XTI/TLI). A user communicates to a transportprovider via a full duplex path known as a stream. This stream provides amechanism in which messages may be passed to the transport provider from thetransport user and vice versa..PP.IR STREAMS (4)messages that are used to communicate transport service primitives between thetransport user and the transport provider may have one of the followingformats:.IP 1. 4A.B M_PROTOmessage block followed by zero or more.B M_DATAmessage blocks. The.B M_PROTOmessage block contains the type of transport service primitive and all therelevant arguments associated with the primitive. The.B M_DATAblocks contain transport user data associated with the transport serviceprimitive..IP 2. 4One.B M_PCPROTOmessage block containing the type of transport service primitive and all therelevant arguments associated with the primitive..IP 3. 4One or more.B M_DATAmessage blocks containing transport user data..PPThe following sections describe the transport primitives which define both aconnection-mode and connectionless-mode transport service. For both types oftransport service, two types of primitives exist: primitives which originatefrom the transport user and primitives which originate from the transportprovider. The primitives which originate from the transport user makerequests to the transport provider or respond to an event of the transportprovider. The primitives which originate from the transport provider areeither confirmations of a request or are indications to the transport userthat an event has occurred. Section 2 lists the primitive types along withthe mapping of those primitives to the.IR STREAMS (4)message types and the transport primitives of the ISO IS 8072 and IS 8072/DADtransport service definitions. The format of these primitives and the rulesgoverning the use of them are described in the sections that follow..\".\".\".\".SS "Local Management".PPThe following management primitives are common to all modes of transportservice providers.The transport service provider provides the following local managementservices:.PP.B Information ServiceThe information service provides the transport services user with the abilityto query the transport service provider concerning options and parametersspecific to the transport service provider and associated with the transportconnection.The information services use the following primitives:.IP \(em \w'\(em\(em'u.BR T_INFO_REQ (7):Requests information concerning the transport service provider, limits, modesand options.This primitive requires local acknowledgment with the.BR T_INFO_ACK "(7) or " T_ERROR_ACK (7)primitives.IP \(em \w'\(em\(em'u.BR T_INFO_ACK (7):Provides information concerning the transport service provider, limits, modesand options..PP.B Bind ServiceThe bind service provides the transport services user with the ability to bindthe requesting stream to a transport endpoint address. The bind service alsopermits the negotiation of the number of outstanding connection indications ona connection mode transport service provider.The bind service uses the following primitives:.IP \(em \w'\(em\(em'u.BR T_BIND_REQ (7):Requests the binding of the stream to a transport endpoint address.This primitive requires local acknowledgment with the.BR T_BIND_ACK "(7) or " T_ERROR_ACK (7)primitives..IP \(em \w'\(em\(em'u.BR T_BIND_ACK (7):Provides acknowledgment of the bound transport endpoint address..PP.B Unbind ServiceThe unbind service provides the transport services user with the ability tounbind the requesting stream from the transport endpoint address to which itis currently bound.The unbind service uses the following primitives:.IP \(em \w'\(em\(em'u.BR T_UNBIND_REQ (7):Requests the stream be unbound from the bound transport endpoint address.This primitive requires local acknowledgment with the.BR T_OK_ACK "(7) or " T_ERROR_ACK (7)primitives..PP.B Receipt Acknowledgment ServiceThe receipt acknowledgment service provides an indication to the transportservice user of the positive or negative acknowledgment of the previousprimitive issued by the channel service user.The receipt acknowledgment service uses the following primitives:.IP \(em \w'\(em\(em'u.BR T_OK_ACK (7):Provides positive acknowledgment of request and response primitives thatrequire acknowledgment..IP \(em \w'\(em\(em'u
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -