📄 xti_udp.3.man
字号:
'\" rtp.\" -*- nroff -*- vim: ft=nroff noautoindent nocindent nosmartindent.\".\" @(#) xti_udp.3.man,v 1.1.2.1 2004/05/16 02:35:39 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:39 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 XTI-UDP 3 "2004/05/16 02:35:39" "strxnet-0_9_2-4" "X/Open Transport Interface".\".\".SH "NAME".B xti_udp\- X/Open Transport Interface \- Corrigendum for User Datagram Protocol (UDP) Conformance.\".\".SH SYNOPSIS.PP.B #include <xti.h>.br.B #include <xti_ip.h>.br.B #include <xti_udp.h>.HP.BI "int " udp_xtistr " = t_open(" \fR\*(lq/dev/udp\*(rq\fI ", " flags );.\".\".SH DESCRIPTION.PPThis manual section describes the protocol-specific information that isrelevant for UDP transport providers. This section also describes theprotocol-specific information that is relevant when UDP services are providedover an IP network using UDP..PPThis section also defines the data structures and constants required for UDPtransport providers that are exposed through the.B <xti_udp.h>header file..\".\".SH "ADDRESS FORMAT".PPThe UDP address format is structured as follows:.PP.nf\fC\s-1\struct sockaddr_in { sa_family_t sin_family; /* Address family */ unsigned short int sin_port; /* Port number */ struct in_addr sin_addr; /* Interned address */ /* padding */};\s+1\fP.fi.PPThe.B sockaddr_instructure contains the following members:.TP \w'sin_family\(em'u.I sin_familyThe address family. Always set to.BR AF_INET " or " AF_UNSPEC ..PD 0.TP.I sin_portThe port number of the transport endpoint..TP.I sin_addrThe IP address of the transport endpoint..TP.I (padding)Padding to pad the size of the.B sockaddr_instructure to the size of a.B sockaddrstructure..PD.PPThe structure is padded to the size of a.BR sockaddrstructure..\".\".SH OPTIONS.PPOptions are formatted according to the.B t_opthdrstructure as described in.BR xti (3).An UDP transport provider compliant to this specification supports none, allor any subset of the options defined here. An implementation may restrict theuse of any of these options by offering them only in a priviledged read-onlymode..PPAn UDP transport provider supports three levels of options. These three levelsare described below..\".\".SS "XTI_GENERIC".PPOptions with this level are specific to the X/Open Transport Interface (XTI/TLI)and are common to all transport providers. For more information see.BR xti (3)..PPThe options defined with the option level.B XTI_GENERICare as follows:.TP.B XTI_DEBUGSets debugging flags for the stream.This option is formatted as an array of.BR t_uscalar_t .Legal values are implementation defined.For more information, see.BR xti (3)..TP.B XTI_LINGERSets whether, and the amount of time if, the stream will linger waiting forunsent data to be delivered.This option is formatted as a.B t_lingerstructure as follows:.RS.PP.nf\fC\s-1\struct t_linger { t_scalar_t l_onoff; /* option on/off */ t_scalar_t l_linger; /* linger time */};\s+1\fP.fi.TP \w'l_linger\(em'u.I l_onoffSpecifies whether to linger.RB ( T_YES )or not.RB ( T_NO ).Legal values are.BR T_YES " and " T_NO ..TP.I l_lingerSpecifies the amount of time (in seconds) to linger.Legal values are.BR T_INFINITE ", " T_UNSPECand all positive numbers including zero..PPFor more information, see.BR xti (3)..RE.TP.B XTI_RCVBUFSpecifies the size, in bytes, of the receive buffer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_RCVLOWATSpecifies the low water mark above which received data will be indicated anddelivered to the user.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_SNDBUFSpecifies the size, in bytes, of the transmit buffer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..TP.B XTI_SNDLOWATSpecifies the low water mark above which queued data will be transmitted tothe peer.This option is formatted as a.BR t_uscalar_t .Legal values are all positive, non-zero numbers.For more information, see.BR xti (3)..\".\".SS "T_INET_IP".PPOptions within this level are specific to the Internet Protocol (IP) and arecommon to all the protocol levels in IP. For more information, see.BR xti_ip (3)..PPThe options defined with the option level.B T_INET_IPare as follows:.TP.B T_IP_OPTIONSProvides control for the T_IP OPTIONS field. Used for debugging.This option is formatted as an array of.BR "unsigned char" ,up to 40 elements.For more information, see.BR xti_ip (3)..TP.B T_IP_TOSProvides control of the type-of-service byte present in each transmited T_IPpacket.This option is formated as an.BR "unsigned char" .Legal values can be generated with the.BR SET_TOS ()macro described in.BR xti_ip (3).For more information, see.BR xti_ip (3)..TP.B T_IP_TTLProvides control of the time-to-live byte present in each transmitted T_IPpacket.This option is formatted as an.BR "unsigned char" .Legal values are from 0 to 255.For more information, see.BR xti_ip (3)..TP.B T_IP_REUSEADDRAllows multiple non-listening binds to the same address.This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..TP.B T_IP_DONTROUTEBypasses routing tables and routes directly to an interface. Used fordebugging.This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..TP.B T_IP_BROADCASTAllows broadcast addresses to be used. This option is not applicable to TCPand is always set to.BR T_NO .This option is format as a.BR "unsigned int" .Legal values are.BR T_YES " and " T_NO .For more information, see.BR xti_ip (3)..\".\".SS "T_INET_UDP".PPOptions within this level are specific to the User DatagramProtocol (UDP) yet are used by protocol levels using UDP transport..PPThe options defined with the option level.B T_INET_UDPare as follows:.TP.B T_UDP_CHECKSUMThis option allows disabling/enabling of the.B T_UDPchecksum computation. The legal values are.B T_YES(checksum enabled) and.B T_NO(checksum disabled)..spIf this option is returned with.BR t_rcvudata (3),its value indicates whether a checksum was present in the received datagram ornot..spNumerous cases of undetected errors have been reported when applicationschoose to turn of checksums for efficiency. The advisability of ever turningoff the checksum algorithm is very controversial..spThis option is formatted as a.BR t_uscalar_t .It can take on values.BR T_YES " and " T_NO .This option is an.IR "absolute requirement" .This option is of.IR "end-to-end significance" ..\".\".SH FUNCTIONS.PP.\".\".SS t_accept\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_bind\fR(3).PP.\".\".SS t_close\fR(3).PP.\".\".SS t_connect\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_getinfo\fR(3).PP.\".\".SS t_listen\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_open\fR(3).PP.\".\".SS t_optmgmt\fR(3).PP.\".\".SS t_rcvconnect\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_rcvdis\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_rcv\fR(3), \fBt_rcvv\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_rcvreldata\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_rcvrel\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_rcvudata\fR(3), \fBt_rcvvudata\fR(3).PP.\".\".SS t_rcvuderr\fR(3).PP.\".\".SS t_snddis\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_snd\fR(3), \fBt_sndv\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_sndreldata\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_sndrel\fR(3).PP.B XTI-UDPonly supports connection-less mode. This XTI/TLI library call will return.RB [ TNOTSUPPORT ].For a connection mode service, see.BR xti_tcp "(3) or " xti_sctp (3)..\".\".SS t_sndudata\fR(3), \fBt_sndvudata\fR(3).PP.\".\".SS t_unbind\fR(3).PP.\".\".SH "CAVEATS".PP.\".\".SH "SEE ALSO".PP.\".\".BR xti (3),.BR xnet (3)..\".\".SH "DEVICES".PPThere is one UDP device providing the Transport Provider Interface thatprovide UDP conforming TPI devices as follows:.\".\".TP.I /dev/udpFor more information on the TPI UDP device, see.BR udp (4)..\".\".SH "VERSIONS".PPThe.B UDP-TPIdriver is specific to the.B OpenSS7stack.This is an unofficial Corrigendum to XNS 5.2 Revision 2..[xns.].\".\".[$LIST$.].T4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -