⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sli.2

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 2
字号:
'\"t.\" -*- nroff -*-.\".\" @(#) sli.2,v 0.7 2000/11/15 10:56:26 brian Stab.\".\" =========================================================================.\".\"  Copyright (C) 1997-2000  Brian Bidulock.  All Rights Reserved..\".\".\"                               PUBLIC LICENSE.\".\"  This license is provided without fee, provided that the above copy-.\"  right notice and this public license must be retained on all copies,.\"  extracts, compilations and derivative works.  Use or distribution of.\"  this work in a manner that restricts its use except as provided here.\"  will render this license void..\".\"  The author(s) hereby waive any and all other restrictions in respect.\"  of their copyright in this software and its associated documentation..\"  The authors(s) of this software place in the public domain any novel.\"  methods or processes which are embodied in this software..\".\"  The author(s) undertook to write it for the sake of the advancement.\"  of the Arts and Sciences, but it is provided as is, and the author(s).\"  will not take any responsibility in it..\".\" =========================================================================.\".\" Last Modified 2000/11/15 10:56:26 by brian.\".\" sli.2,v.\" Revision 0.7  2000/11/15 10:56:26  brian.\" Added man file for streams modules..\".\" =========================================================================.TH SLI 2 "30 Oct 2000" "Linux Man Page" "LiS Programmer's Manual".SH NAMEsli \- SS7 Signalling Link Interface (SLI) for STREAMS.SH SYNOPSIS.B #include <ss7/sli.h>.br.IB fdesc " = open(const char *" name ", int " flags ");".SH DESCRIPTIONThis is an implementation of the Signalling Link Interface described in theOpenSS7 Signalling Link Interface Specification and documented in ITU-TRecommendation Q.703.  It provides the signalling link service.The SLI supports two styles of driver.When an SLI driver is opened, it's physical point of appearance may bespecified or unspecified depending on the style of the driver..TP 4.I Style 1\fIStyle 1\fR drivers have a Physical Point of Attachment (PPA) address whichis bound to the opened stream at the time that the stream is opened.  Thesedrivers are typically allocated a \fImajor\fR and \fIminor\fR device numberand a per-device character special device file entry in the \fB/dev\fRdirectory..TP.I Style 2\fIStyle 2\fR drivers do not have a Physical Point of Attachment (PPA) addressbound at the time that the device is opened.  These drivers are typicallyallocated a \fImajor\fR and \fIminor\fR device number using the\fBclone open\fR and then are attached to a PPA using the\fBSL_ATTACH_REQ\fR command..SH M_PROTO COMMANDSThe following protocol commands are supported by drivers which conform to theSignalling Link Interface:.TP 4.BR SL_INFO_REQ ", " SL_INFO_ACKWhen the SLI user wishes to obtain information about the driver'simplementation of the interface, it issues an \fBSL_INFO_REQ\fR command.  Inresponse, the Signalling Link Service (SLS) provider will respond with an\fBSL_INFO_ACK\fR message with the following information:.RS.in +4.sp.nftypdef struct {    sl_ulong    sl_primitive;    sl_ulong    sl_state;    sl_ulong    sl_max_sdu;    sl_ulong    sl_min_sdu;    sl_ulong    sl_addr_length;    sl_ulong    sl_ppa_style;    sl_ulong    sl_version;} sl_info_ack_t;.fi.RE.TP 4.BR SL_ATTACH_REQ ", " SL_OK_ACK ", " SL_ERROR_ACKThis command and response are used in directing the device to attached to thespecified Physical Point of Attachment address (PPA).  The precise format ofthe PPA is device-specific and is provided in the specific device sections,e.g. \fBacb56\fR(7).  Typically the address has two components: a signallingdata terminal (SDT) component and a signalling data link (sdl) component.  ThePPA is provided in the \fBSL_ATTACH_REQ\fR command as follows:.RS.in +4.sp.nftypedef struct {    sl_ulong    sl_primitive;    sl_ulong    sl_ppa_addr;} sl_attach_req_t;.fi.RE.IPIf the attach is successful, the SLS provider responds with an\fBSL_OK_ACK\fR; otherwise, it responds with an \fBSL_ERROR_ACK\fR.In addition to the normal errors which may be contained in the\fBSL_ERROR_ACK\fR, the following additional error codes may be returned:.RS.in +4.TP.B SL_OUTSTATEThe device is not in the \fBSL_UNATTACHED\fR state.  The \fIsl_state\fRcomponent of the \fBSL_ERROR_ACK\fR contains the actual state of theinterface..TP.B SL_BADADDRThe address was invalid..TP.B SL_BADADDRTYPEInvalid address type..TP.B SL_BADPPAInvalid PPA identifier..TP.B SL_PPAINUSEThe PPA specified in the attach command is already in use by anothersignalling link.  The SLS does not permit multiiple SLS users to open streamsthrough the same PPA: only one stream per PPA is allowed..RE.TP 4.BR SL_DETACH_REQ ", " SL_OK_ACK ", " SL_ERROR_ACKThe detach request is sent as an \fBM_PROTO\fR or \fBM_PCPROTO\fR message bythe SLS User when it wishes to detach a \fBIStyle 2\fR driver stream from aparticular PPA.  The stream must already be disabled.  If the detach issuccessful, the SLS Provider response with an \fBSL_OK_ACK\fR; otherwise, itresponds with an \fBSL_ERROR_ACK\fR with one of the following error codes:.RS.in +4.TP.B SL_OUTSTATEThe device is not in the \fBSL_ATTACHED\fR state.  The \fIsl_state\fRcomponent of the \fBSL_ERROR_ACK\fR contains the actual state of theinterface..RE.TP 4.BR SL_ENABLE_REQ ", " SL_ENABLE_CON.RS.in +4.sp.nf.fi.RE.TP 4.BR SL_DISABLE_REQ ", " SL_DISABLE_CON.RS.in +4.sp.nf.fi.RE.SH COPYRIGHT NOTICE.spCopyright \(co 1997-2000  Brian Bidulock.  All Rights Reserved..ce 1PUBLIC LICENSEThis license is provided without fee, provided that the above copyright noticeand this public license must be retained on all copies, extracts, compilationsand derivative works.  Use or distribution of this work in a manner thatrestricts its use except as provided here will render this license void.The author(s) hereby waive any and all other restrictions in respect of theircopyright in this software and its associated documentation.  The authors(s)of this software place in the public domain any novel methods or processeswhich are embodied in this software.The author(s) undertook to write it for the sake of the advancement of theArts and Sciences, but it is provided as is, and the author(s) will not takeany responsibility in it.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -