?? udp.4.man
字號:
'\" rtp.\" -*- nroff -*- vim: ft=nroff noautoindent nocindent nosmartindent.\".\" @(#) udp.4.man,v 0.9.2.2 2004/05/16 02:35:40 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:40 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 UDP 4 "2004/05/16 02:35:40" "strxnet-0_9_2-4" "OpenSS7 INET Devices".\".\".SH NAME.B udp\- User Datagram Protocol.\".\".SH SYNOPSIS.PP.B #include <sys/socket.h>.br.B #include <netinet/udp.h>.br.B #include <sys/tpi_udp.h>.br.B #include <sys/xti_udp.h>.HP.BI "int " udp_stream " = open(" \fR/dev/udp\fI ", " flags );.HP.BI "int " udp_xtistr " = t_open(" \fR/dev/udp\fI ", " flags );.HP.BI "int " udp_socket " = socket(" \fRPF_INET\fI ", " \fRSOCK_DGRAM\fI ", " \fRIPPROTO_UDP\fI );.\".\".SH DESCRIPTION.PP.B UDPis an implementation of the User Datagram Protocol.RB ( UDP )defined in RFC 768..[RFC 768.]It implements a connectoinless, unreliable datagram packet service. Packetsmay be reordered or duplicated before they arrive..B UDPgenerates and checks checksums to catch transmission errors..PP.B UDPis implemented as a.IR STREAMS (4)pseudo-driver using the.BR INET (4).B strinetpacket for.B LiS\c..[LiS.]The.B strinetpackage translate Linux native.BR udp (7)sockets into TPI.[TPI Revision 2.0.0.]transport provider streams suitable for use with XTI,.[XTI.].[XNS.](see.BR xti (3))..PP.B UDPprovides one connectionless TPI stream type. To select the stream,.I udp_devicecan be one of the following:.TP.IR /dev/udp " or " /dev/inet/udp .This device provides the.B UDPprotocol services using the T-primitives of the Transport Provider Interface,.[TPI Revision 2.0.0.].BR tpi (7),used for User Datagram Protocol, as described in.BR tpi_udp (7).The.BR tpi (7)interface provided on a stream opening this device is suitable for use withthe.BR xnet (3)or.BR xti (3)library and provides.B UDPinterface using XTI.[XTI.].[XNS.]as described in.BR xti_udp (3)..PP.B UDPproivdes one socket type for use by the.BR sockets (3)library.BR socket (7)calls..B UDPprovides sockets in the protocol families.BR PF_INET " and " PF_INET6using the protocol number.BR IPPROTO_UDP .The.I socket_typecan be one of the following:.TP.B SOCK_DGRAMA standard.I SOCK_DGRAMsocket that preserves message boudnaries, does not Nagle, and provides onlyunordered and unreliable delivery in a connectionless association. Thissocket uses the underlying Linux socket implementation,.BR udp (7),directly. See.BR udp (7)for more information..\".\".SH USAGE.PP.PPThe following entries in.B /etc/protoswprovides the information for.BR socksys (4)to use the devices:.sp.TStab(:);lllllll.PF_INET:SOCK_DGRAM:IPPROTO_UDP:/dev/udp:tpi:cltsPF_INET6:SOCK_DGRAM:IPPROTO_UDP:/dev/udp:tpi:clts.TE.PPFor additional information, see.BR socksys "(4) and " protosw (5)..\".\".SH IOCTLS.PPAll interfaces support a set of management IO controls using.BR ioctl (2)and.BR streamio (7).I I_STRsystem calls on the.IR udp_stream ", " udp_xtistr " or " udp_socket .These management controls are described in.BR timod "(4), " sockmod "(4) and " socksys (4).See also.BR udp (7)for sockets..\".\".SH NOTICES.PP.B TCPhas several implementations. This manpage is for the.BR INET (4)implementation that provides.BR tpi (7)access to the Linux NET4 version of.BR UDP .For more information on the Linux NET4 version, see.BR udp (7)..\".\".SH FILES.PP.PP.BR <sys/socket.h> ,.BR <netinet/udp.h> ,.BR <sys/tpi.h> ,.BR <sys/tpi_ip.h> ,.BR <sys/tpi_udp.h> ,.BR <sys/xti.h> ,.BR <sys/xti_ip.h> ,.BR <sys/xti_udp.h> ..\".\".SH DEVICES.PP.PP.IR /dev/udp ,.IR /dev/inet/udp ..\".\".SH "SEE ALSO".PP.PP.BR INET (4),.BR ioctl (2),.BR ip (7),.BR LiS (9),.BR protosw (5),.BR socket (7),.BR sockets (3),.BR sockmod (4),.BR socksys (4),.BR STREAMS (4),.BR udp (7),.BR udp_ioctl (4),.BR timod (4),.BR tpi (7),.BR tpi_ip (7),.BR tpi_udp (7),.BR xnet (3),.BR xti (3),.BR xti_ip (3),.BR xti_udp (3)..\".\".\".[$LIST$.].TI
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -