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

📄 ip.4p

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 4P
字号:
.\" SCCSID: @(#)ip.4p	8.1	9/11/90.TH ip 4p.SH Nameip \- Internet Protocol.SH Syntax.B #include <sys/socket.h>.br.B #include <netinet/in.h>.PP.B s = socket(AF_INET, SOCK_RAW, 0);.SH Description.NXR "IP transport protocol".NXS "network protocol" "IP transport protocol"The IP is the transport layer protocol usedby the Internet protocol family.  It can be accessedthrough a ``raw socket'' when developing new protocols orspecial purpose applications.  IP sockets are connectionlessand are normally used with the.PN sendto and.PN recvfrom calls.  The .MS connect 2call, however, 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 be used..PPOutgoing packets automatically have an IP header prepended tothem, based on the destination address and the protocolnumber the socket is created with.Incoming packets are received with their IP headers andoptions 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 had one, or tried to send a datagram with the destinationaddress specified when the socket was already connected..TP 15[ENOTCONN]Tried to send a datagram, butno destination address was specified and the socket was notconnected..TP 15[ENOBUFS]The system ran out of memory foran internal data structure..TP 15[EADDRNOTAVAIL]Made an attempt to create a socket with a network address for which no network interfaceexisted..SH See Alsosend(2), recv(2), inet(4f), intro(4n), packetfilter(4)

⌨️ 快捷键说明

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