Change protocol for UDP example

This commit is contained in:
Michael Kerrisk 2005-06-28 11:57:06 +00:00
parent c9c3b6f3aa
commit aa6dd0995f
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@ ip \- Linux IPv4 protocol implementation
.B #include <netinet/ip.h> \fR/* superset of previous */
.sp
.IB tcp_socket " = socket(PF_INET, SOCK_STREAM, 0);"
.br
.IB udp_socket " = socket(PF_INET, SOCK_DGRAM, 0);"
.br
.IB raw_socket " = socket(PF_INET, SOCK_RAW, " protocol ");"
.br
.IB udp_socket " = socket(PF_INET, SOCK_DGRAM, " protocol ");"
.SH DESCRIPTION
Linux implements the Internet Protocol, version 4,
described in RFC\ 791 and RFC\ 1122.