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

📄 timod.4

📁 7号信令功能代码,为开源代码
💻 4
📖 第 1 页 / 共 2 页
字号:
'\" rtp.\" -*- nroff -*- vim: ft=nroff.\".\" @(#) timod.4,v 1.1.4.1 2004/01/12 23:45:06 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/01/12 23:45:06 by brian.\".\" =========================================================================.so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH TIMOD 4 "2004/01/12 23:45:06" "LiS-2_16_18-8" "Linux Fast-STREAMS Devices".\".\".SH NAME.B timod\- a STREAMS XTI/TLI compatability interface.\".\".SH SYNOPSIS.PP.B #include <sys/stropts.h>.br.B #include <sys/tihdr.h>.br.B #include <sys/timod.h>.HP 8.BI "" t " = open(" /dev/tcp , 0 );.HP 8.BI ioctl( t , " I_PUSH" , " \*(lqtimod\*(rq" );.HP 8.BI ioctl( t , " I_STR" , " &ic" );.\".\".SH DESCRIPTION.PP.PP.B timodis a XTI/TLI library compatability module for the STREAMS Transport ProviderInterface.BR tpi (7).It translates a set of.B timod.BR ioctl (2)commands into TLI primitives.  These.B timod.BR ioctl (2)commands are intended to be used by the XTI/TLI library..PPThe purpose of the.B timodmodule is provide thread-safe atomic operations in support fot he XTI/TLIlibrary..B timoddoes not alter any messages passed with.BR putmsg "(2) or " putpmsg (2),or received with.BR getmsg "(2) or " getpmsg (2)..B timodsimply intercepts responses to its own primitives sent downstream as a resultof an.BR ioctl (2)command..PPUnlike the.BR sockmod (4)module,.B timodmakes no adjustments to the stream head for.BR read (2)options (see.B I_SETRDOPTunder.BR streamio (7))..\".\".SH IOCTLS.PP.PPThe following subsections detail the.BR ioctl (2)commands that are made available by pushing the.B timodmodule.For additional information on the.B T_primitivestructures, see.BR tpi (7)..PP.B timodonly supports the.I I_STRversion of the IO controls and does not support transparent IO controls.  Formore information, see the.I I_STRsubsection of.BR streamio (7)..\".\".SS TI_GETINFO (('T' << 8) + 140).PP.I argis a pointer to a.B strioctlstructure passing in a.B T_info_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_info_req {    t_scalar_t PRIM_type;       /* always T_INFO_REQ */};\fR\s+1.fi.PPand returning a.B T_info_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_info_ack {    t_scalar_t PRIM_type;       /* always T_INFO_ACK */    t_scalar_t TSDU_size;       /* max TSDU size */    t_scalar_t ETSDU_size;      /* max ETSDU size */    t_scalar_t CDATA_size;      /* Connect data size */    t_scalar_t DDATA_size;      /* Discon data size */    t_scalar_t ADDR_size;       /* TSAP size */    t_scalar_t OPT_size;        /* options size */    t_scalar_t TIDU_size;       /* TIDU size */    t_scalar_t SERV_type;       /* service type */    t_scalar_t CURRENT_state;   /* current state */    t_scalar_t PROVIDER_flag;   /* provider flags */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_info_ackstructure..\".\".SS TI_OPTMGMT (('T' << 8) + 141).PP.I argis a pointer to a buffer passing in a.B T_optmgmt_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_optmgmt_req {    t_scalar_t PRIM_type;       /* always T_OPTMGMT_REQ */    t_scalar_t OPT_length;      /* options length */    t_scalar_t OPT_offset;      /* options offset */    t_scalar_t MGMT_flags;      /* flags */};\fR\s+1.fi.PPand returning a.B T_optmgmt_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_optmgmt_ack {    t_scalar_t PRIM_type;       /* always T_OPTMGMT_ACK */    t_scalar_t OPT_length;      /* options length */    t_scalar_t OPT_offset;      /* options offset */    t_scalar_t MGMT_flags;      /* flags */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_optmgmt_ackstructure..\".\".SS TI_BIND (('T' << 8) + 142).PP.I argis a pointer to a buffer passing in a.B T_bind_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_bind_req {    t_scalar_t PRIM_type;       /* always T_BIND_REQ */    t_scalar_t ADDR_length;     /* length of address */    t_scalar_t ADDR_offset;     /* offset of address */    t_uscalar_t CONIND_number;  /* requested number of connect                                   indications to be queued */};\fR\s+1.fi.PPand returning a.B T_bind_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_bind_ack {    t_scalar_t PRIM_type;       /* always T_BIND_ACK */    t_scalar_t ADDR_length;     /* length of address */    t_scalar_t ADDR_offset;     /* offset of address */    t_uscalar_t CONIND_number;  /* connect indications to be queued */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_bind_ackstructure..\".\".SS TI_UNBIND (('T' << 8) + 143).PP.I argis a pointer to a buffer passing in a.B T_unbind_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_unbind_req {    t_scalar_t PRIM_type;       /* always T_UNBIND_REQ */};\fR\s+1.fi.PPand returning a.B T_ok_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_ok_ack {    t_scalar_t PRIM_type;       /* always T_OK_ACK */    t_scalar_t CORRECT_prim;    /* primitive */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_ok_ackstructure..\".\".SS TI_GETMYNAME (('T' << 8) + 144).PP.I argis a pointer to a buffer passing in a.B T_addr_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_req {    t_scalar_t PRIM_type;       /* always T_ADDR_REQ */};\fR\s+1.fi.PPand returning a.B T_addr_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_ack {    t_scalar_t PRIM_type;       /* always T_ADDR_ACK */    t_scalar_t LOCADDR_length;  /* length of local address */    t_scalar_t LOCADDR_offset;  /* offset of local address */    t_scalar_t REMADDR_length;  /* length of remote address */    t_scalar_t REMADDR_offset;  /* offset of remote address */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_addr_ackstructure..\".\".SS TI_GETPEERNAME (('T' << 8) + 145).PP.I argis a pointer to a buffer passing in a.B T_addr_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_req {    t_scalar_t PRIM_type;       /* always T_ADDR_REQ */};\fR\s+1.fi.PPand returning a.B T_addr_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_ack {    t_scalar_t PRIM_type;       /* always T_ADDR_ACK */    t_scalar_t LOCADDR_length;  /* length of local address */    t_scalar_t LOCADDR_offset;  /* offset of local address */    t_scalar_t REMADDR_length;  /* length of remote address */    t_scalar_t REMADDR_offset;  /* offset of remote address */};\fR\s+1.fi.PPor an error return value.  See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_addr_ackstructure..\".\".SS TI_SETMYNAME (('T' << 8) + 146).PP.I argis a pointer to a buffer passing in a.B T_conn_resstructure, formatted as follows:.sp.nf\fC\s-1\struct T_conn_res {    t_scalar_t PRIM_type;       /* always T_CONN_RES */    t_scalar_t ACCEPTOR_id;     /* reponse queue ptr */

⌨️ 快捷键说明

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