From owner-man-jp-reviewer@jp.freebsd.org  Mon Mar  8 20:12:35 1999
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id UAA02038;
	Mon, 8 Mar 1999 20:12:35 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from titanium.crc.uec.ac.jp (titanium.crc.uec.ac.jp [130.153.195.145])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id UAA02032
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 8 Mar 1999 20:12:33 +0900 (JST)
	(envelope-from tyama@ftth.ee.uec.ac.jp)
Received: from localhost (localhost.crc.uec.ac.jp [127.0.0.1])
	by titanium.crc.uec.ac.jp (8.9.2/8.9.1) with ESMTP id UAA15192
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 8 Mar 1999 20:12:26 +0900 (JST)
	(envelope-from tyama@ftth.ee.uec.ac.jp)
To: man-jp-reviewer@jp.freebsd.org
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Mon_Mar__8_20:12:00_1999_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19990308201226M.tyama@ftth.ee.uec.ac.jp>
Date: Mon, 08 Mar 1999 20:12:26 +0900
From: Yamaguchi Takahiro <tyama@ftth.ee.uec.ac.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 164
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+981115
X-Sequence: man-jp-reviewer 1149
Subject: [man-jp-reviewer 1149] udp.4
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: tyama@ftth.ee.uec.ac.jp

----Next_Part(Mon_Mar__8_20:12:00_1999_809)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$B;38}$G$9!#(B

udp.4 $B$G$9!#(B

$B86J8$N(B 53 $B9TL\$N!V(Babstraction$B!W$O2?$HLu$9$Y$-$J$N$G$7$g$&$+!#:#$N$H$3(B
$B$mC1=c$K!V35G0!W$H$7$F$"$k$N$G$9$,(B..$B!#$=$l$H$b(B, $B$$$o$f$k!V5-9fDj?t!WE*(B
$B$J0UL#$J$N$G$7$g$&$+!#(B

$B86J8$N(B 85 - 92 $B9TL\$"$?$j(B:$B!V(B a UDP port may not be connected to a TCP
port$B!W$O8=:_!V(BUDP $B%]!<%H$O(B TCP $B%]!<%H$H@\B3$5$l$F$$$^$;$s!W$H$7$F$$$k(B
$B$N$G$9$,(B, $B$3$l$O!V!D4X78$"$j$^$;$s!W$H$+!V!DJL!9$N$b$N$G$9!W$H$$$&I=8=(B
$B$K$7$?J}$,$$$$$N$G$7$g$&$+!#(B

$B$=$NB>$h$m$7$/$*4j$$$7$^$9!#(B
-----
 $B;38}(B $B5.9((B (Yamaguchi Takahiro) 
 $BEE5$DL?.Bg3X(B $BEE;R9)3X@l96(B $B;0LZ8&5f<<(B
 tyama@ftth.ee.uec.ac.jp , ytaka@a1.mbn.or.jp


----Next_Part(Mon_Mar__8_20:12:00_1999_809)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=udp.4

.\" Copyright (c) 1983, 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)udp.4	8.1 (Berkeley) 6/5/93
.\" jpman %Id: udp.4,v 0.0 1999/02/22 16:14:04 horikawa Stab %
.\"	$Id: udp.4,v 1.6 1997/03/19 19:47:43 bde Exp $
.\"
.Dd June 5, 1993
.Dt UDP 4
.Os BSD 4.2
.Sh $BL>>N(B
.Nm udp
.Nd Internet User Datagram Protocol
.Sh $B=q<0(B
.Fd #include <sys/types.h>
.Fd #include <sys/socket.h>
.Fd #include <netinet/in.h>
.Ft int
.Fn socket AF_INET SOCK_DGRAM 0
.Sh $B2r@b(B
.Tn UDP
$B$OC1=c$G?.Mj@-$N$J$$%G!<%?%0%i%`%W%m%H%3%k$G$"$j!"(B
$B%$%s%?!<%M%C%H%W%m%H%3%k%U%!%_%j$K$*$1$k35G0(B
.Dv SOCK_DGRAM
$B$N%5%]!<%H$K;HMQ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