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

📄 icmp.4p

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 4P
字号:
.TH icmp 4p.SH Nameicmp \- Internet Control Message Protocol.SH Syntax.B #include <sys/socket.h>.br.B #include <netinet/in.h>.PP.B s = socket(AF_INET, SOCK_RAW, \fIproto\fP);.SH DescriptionThe ICMP is the error and control message protocol used.NXR "ICMP error and control message protocol".NXS "network protocol" "ICMP error and control message protocol".NXA "IP protocol family" ICMP error and Control message protocol"bythe Internet Protocol (IP) transport layerand the Internet protocol family.  It can be accessedthrough a ``raw socket'' for network monitoringand diagnostic functions.The.I protoargument to the socket call to create an ICMP socketis obtained from the.MS getprotobyname 3nroutine.ICMP sockets are connectionless,and are normally used with the.MS sendto 2and.MS recvfrom 2system calls.  The.MS connect 2call can also be used to fix the destination for futurepackets (in which case the .MS read 2or.MS recv 2and .MS write 2or.MS send 2system calls can then be used)..PPOutgoing packets automatically have an IP header prepended tothem (based on the destination address).Incoming packets are received with the IP header and options intact..SH DiagnosticsOn failure, a socket operation returns any of the following errors:.TP 15[EISCONN]Tried to establish a connection on a socket thatalready has one, or tried to send a datagram with the destinationaddress specified and the socket was already connected..TP 15[ENOTCONN]Tried to send a datagram, butno destination address was specified, and the socket has notconnected..TP 15[ENOBUFS]The system ran out of memory foran internal data structure..TP 15[EADDRNOTAVAIL]An attempt was made to create a socket with a network address for which no network interfaceexists..SH See Alsoinet(4f), intro(4n), ip(4p)

⌨️ 快捷键说明

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