亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? getsockopt.2

?? 早期freebsd實現
?? 2
字號:
.\" 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..\".\"     @(#)getsockopt.2	8.3 (Berkeley) 4/19/94.\".Dd April 19, 1994.Dt GETSOCKOPT 2.Os BSD 4.3r.Sh NAME.Nm getsockopt ,.Nm setsockopt.Nd get and set options on sockets.Sh SYNOPSIS.Fd #include <sys/types.h>.Fd #include <sys/socket.h>.Ft int.Fn getsockopt "int s" "int level" "int optname" "void *optval" "int *optlen".Ft int.Fn setsockopt "int s" "int level" "int optname" "const void *optval" "int optlen".Sh DESCRIPTION.Fn Getsockoptand.Fn setsockoptmanipulate the.Em optionsassociated with a socket.  Options may exist at multipleprotocol levels; they are always present at the uppermost.Dq socketlevel..PpWhen manipulating socket options the level at which theoption resides and the name of the option must be specified.To manipulate options at the socket level,.Fa levelis specified as.Dv SOL_SOCKET .To manipulate options at anyother level the protocol number of the appropriate protocolcontrolling the option is supplied.  For example,to indicate that an option is to be interpreted by the.Tn TCPprotocol,.Fa levelshould be set to the protocol number of.Tn TCP ;see.Xr getprotoent 3 ..PpThe parameters.Fa optvaland.Fa optlenare used to access option values for.Fn setsockopt .For.Fn getsockoptthey identify a buffer in which the value for therequested option(s) are to be returned.  For.Fn getsockopt ,.Fa optlenis a value-result parameter, initially containing thesize of the buffer pointed to by.Fa optval ,and modified on return to indicate the actual size ofthe value returned.  If no option value isto be supplied or returned,.Fa optvalmay be NULL..Pp.Fa Optnameand any specified options are passed uninterpreted to the appropriateprotocol module for interpretation.The include file.Ao Pa sys/socket.h Accontains definitions forsocket level options, described below.Options at other protocol levels vary in format andname; consult the appropriate entries insection4 of the manual..PpMost socket-level options utilize an.Fa intparameter for.Fa optval .For.Fn setsockopt ,the parameter should be non-zero to enable a boolean option,or zero if the option is to be disabled..Dv SO_LINGERuses a.Fa struct lingerparameter, defined in.Ao Pa sys/socket.h Ac ,which specifies the desired state of the option and thelinger interval (see below)..Dv SO_SNDTIMEOand.Dv SO_RCVTIMEOuse a.Fa struct timevalparameter, defined in.Ao Pa sys/time.h Ac ..PpThe following options are recognized at the socket level.Except as noted, each may be examined with.Fn getsockoptand set with.Fn setsockopt ..Bl -column SO_OOBINLINE -offset indent.It Dv SO_DEBUG Ta "enables recording of debugging information".It Dv SO_REUSEADDR Ta "enables local address reuse".It Dv SO_REUSEPORT Ta "enables duplicate address and port bindings".It Dv SO_KEEPALIVE Ta "enables keep connections alive".It Dv SO_DONTROUTE Ta "enables routing bypass for outgoing messages".It Dv SO_LINGER  Ta "linger on close if data present".It Dv SO_BROADCAST Ta "enables permission to transmit broadcast messages".It Dv SO_OOBINLINE Ta "enables reception of out-of-band data in band".It Dv SO_SNDBUF Ta "set buffer size for output".It Dv SO_RCVBUF Ta "set buffer size for input".It Dv SO_SNDLOWAT Ta "set minimum count for output".It Dv SO_RCVLOWAT Ta "set minimum count for input".It Dv SO_SNDTIMEO Ta "set timeout value for output".It Dv SO_RCVTIMEO Ta "set timeout value for input".It Dv SO_TYPE Ta "get the type of the socket (get only)".It Dv SO_ERROR Ta "get and clear error on the socket (get only)".El.Pp.Dv SO_DEBUGenables debugging in the underlying protocol modules..Dv SO_REUSEADDRindicates that the rules used in validating addresses suppliedin a.Xr bind 2call should allow reuse of local addresses..Dv SO_REUSEPORTallows completely duplicate bindings by multiple processesif they all set.Dv SO_REUSEPORTbefore binding the port.This option permits multiple instances of a program to eachreceive UDP/IP multicast or broadcast datagrams destined for the bound port..Dv SO_KEEPALIVEenables theperiodic transmission of messages on a connected socket.  Should theconnected party fail to respond to these messages, the connection isconsidered broken and processes using the socket are notified via a.Dv SIGPIPEsignal when attempting to send data..Dv SO_DONTROUTEindicates that outgoing messages shouldbypass the standard routing facilities.  Instead, messages are directedto the appropriate network interface according to the network portionof the destination address..Pp.Dv SO_LINGERcontrols the action taken when unsent messagesare queued on socket and a .Xr close 2is performed.If the socket promises reliable delivery of data and.Dv SO_LINGER is set,the system will block the process on the .Xr closeattempt until it is able to transmit the data or until it decides itis unable to deliver the information (a timeout period, termed thelinger interval, is specified in the.Fn setsockoptcall when.Dv SO_LINGERis requested). If.Dv SO_LINGERis disabled and a .Xr closeis issued, the system will process the close in a manner that allowsthe process to continue as quickly as possible..PpThe option.Dv SO_BROADCASTrequests permission to send broadcast datagramson the socket.Broadcast was a privileged operation in earlier versions of the system.With protocols that support out-of-band data, the.Dv SO_OOBINLINEoptionrequests that out-of-band data be placed in the normal data input queueas received; it will then be accessible with.Xr recvor.Xr readcalls without the.Dv MSG_OOBflag.Some protocols always behave as if this option is set..Dv SO_SNDBUFand.Dv SO_RCVBUFare options to adjust the normalbuffer sizes allocated for output and input buffers, respectively.The buffer size may be increased for high-volume connections,or may be decreased to limit the possible backlog of incoming data.The system places an absolute limit on these values..Pp.Dv SO_SNDLOWATis an option to set the minimum count for output operations.Most output operations process all of the data suppliedby the call, delivering data to the protocol for transmissionand blocking as necessary for flow control.Nonblocking output operations will process as much data as permittedsubject to flow control without blocking, but will process no dataif flow control does not allow the smaller of the low water mark valueor the entire request to be processed.A.Xr select 2operation testing the ability to write to a socket will return trueonly if the low water mark amount could be processed.The default value for.Dv SO_SNDLOWATis set to a convenient size for network efficiency, often 1024..Dv SO_RCVLOWATis an option to set the minimum count for input operations.In general, receive calls will block until any (non-zero) amount of datais received, then return with the smaller of the amount available or the amountrequested.The default value for.Dv SO_RCVLOWATis 1.If .Dv SO_RCVLOWATis set to a larger value, blocking receive calls normallywait until they have received the smaller of the low water mark valueor the requested amount.Receive calls may still return less than the low water mark if an erroroccurs, a signal is caught, or the type of data next in the receive queueis different than that returned..Pp.Dv SO_SNDTIMEOis an option to set a timeout value for output operations.It accepts a.Fa struct timevalparameter with the number of seconds and microsecondsused to limit waits for output operations to complete.If a send operation has blocked for this much time,it returns with a partial countor with the error.Er EWOULDBLOCKif no data were sent.In the current implementation, this timer is restarted each time additionaldata are delivered to the protocol,implying that the limit applies to output portions ranging in sizefrom the low water mark to the high water mark for output..Dv SO_RCVTIMEOis an option to set a timeout value for input operations.It accepts a.Fa struct timevalparameter with the number of seconds and microsecondsused to limit waits for input operations to complete.In the current implementation, this timer is restarted each time additionaldata are received by the protocol,and thus the limit is in effect an inactivity timer.If a receive operation has been blocked for this much time withoutreceiving additional data, it returns with a short countor with the error.Er EWOULDBLOCKif no data were received..PpFinally,.Dv SO_TYPEand.Dv SO_ERRORare options used only with.Fn getsockopt ..Dv SO_TYPEreturns the type of the socket, such as.Dv SOCK_STREAM ;it is useful for servers that inherit sockets on startup..Dv SO_ERRORreturns any pending error on the socket and clearsthe error status.It may be used to check for asynchronous errors on connecteddatagram sockets or for other asynchronous errors..Sh RETURN VALUESA 0 is returned if the call succeeds, -1 if it fails..Sh ERRORSThe call succeeds unless:.Bl -tag -width ENOPROTOOPTAA.It Bq Er EBADFThe argument.Fa sis not a valid descriptor..It Bq Er ENOTSOCKThe argument.Fa sis a file, not a socket..It Bq Er ENOPROTOOPTThe option is unknown at the level indicated..It Bq Er EFAULTThe address pointed to by .Fa optvalis not in a valid part of the process address space.For.Fn getsockopt ,this error may also be returned if.Fa optlenis not in a valid part of the process address space..El.Sh SEE ALSO.Xr ioctl 2 ,.Xr socket 2 ,.Xr getprotoent 3.Xr protocols 5.Sh BUGSSeveral of the socket options should be handled at lower levels of the system..Sh HISTORYThe.Nmsystem call appeared in.Bx 4.2 .

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国产精品麻豆| 91精品欧美福利在线观看| 久久精品视频在线免费观看| 国产精品综合视频| 狂野欧美性猛交blacked| 91精品欧美久久久久久动漫 | 色狠狠一区二区三区香蕉| 亚洲免费三区一区二区| 欧美综合欧美视频| 久久国产三级精品| 欧美极品xxx| 在线视频观看一区| 麻豆国产欧美一区二区三区| 久久亚洲一区二区三区四区| av在线播放成人| 婷婷综合久久一区二区三区| wwwwww.欧美系列| 91丨porny丨蝌蚪视频| 日韩精品一卡二卡三卡四卡无卡| 久久综合久久久久88| 色88888久久久久久影院野外| 三级在线观看一区二区| 欧美激情综合在线| 欧美日韩激情一区二区| 国产精品亚洲综合一区在线观看| 亚洲摸摸操操av| 日韩欧美电影在线| 91丨porny丨国产| 精品制服美女久久| 一区二区三区在线免费视频| 精品理论电影在线| 91国产免费看| 国模娜娜一区二区三区| 亚洲精品国产无天堂网2021 | 国产精品欧美综合在线| 欧美亚洲免费在线一区| 国产精品资源网| 日韩高清一区二区| 亚洲丝袜自拍清纯另类| 日韩午夜精品视频| 91成人免费网站| 成人在线综合网| 久久国产视频网| 视频一区欧美日韩| 亚洲女人****多毛耸耸8| 2020国产成人综合网| 一区二区三区在线看| 久久久www免费人成精品| 欧美日韩成人综合天天影院| 99re8在线精品视频免费播放| 久久精品72免费观看| 亚洲男人电影天堂| 国产精品丝袜一区| 久久免费视频色| 欧美刺激脚交jootjob| 欧日韩精品视频| 色伊人久久综合中文字幕| 国产一区二区三区综合| 日韩电影免费在线| 亚洲第一主播视频| 亚洲韩国精品一区| 一级中文字幕一区二区| 国产精品国产a级| 国产精品视频免费| 国产亚洲精品资源在线26u| 欧美一区二区高清| 欧美一区欧美二区| 欧美一区二区福利视频| 在线播放日韩导航| 欧美日韩亚州综合| 欧美日韩中文另类| 欧美日韩成人在线| 欧美理论片在线| 3d动漫精品啪啪| 日韩欧美电影一二三| 欧美一区二区三区日韩视频| 91精品黄色片免费大全| 91精品国产欧美一区二区| 制服丝袜中文字幕一区| 日韩一区二区三区视频在线| 欧美一区永久视频免费观看| 91精品视频网| 欧美大白屁股肥臀xxxxxx| 欧美mv日韩mv国产| 久久久99精品久久| 亚洲国产精品ⅴa在线观看| 国产精品久久久久国产精品日日| 中文字幕巨乱亚洲| 亚洲激情校园春色| 午夜精品一区二区三区电影天堂| 日韩在线播放一区二区| 久热成人在线视频| 国产成人丝袜美腿| 色综合一区二区| 欧美另类变人与禽xxxxx| 精品国产污网站| 国产精品色婷婷| 亚洲高清中文字幕| 蜜桃av噜噜一区| 成人精品视频一区| 欧美性色综合网| 欧美电影免费观看高清完整版在 | 欧美一区二区三区视频在线 | 欧美又粗又大又爽| 日韩欧美色综合| 国产精品久久久久一区| 亚洲国产视频在线| 欧美色图一区二区三区| 日韩欧美你懂的| 亚洲欧洲精品一区二区三区| 婷婷六月综合亚洲| 成人污视频在线观看| 欧美日韩三级视频| 亚洲国产精品高清| 日韩激情av在线| 波波电影院一区二区三区| 91精品免费在线| 国产精品私人影院| 免播放器亚洲一区| 成av人片一区二区| 91精选在线观看| 亚洲天堂精品在线观看| 久久99国产精品麻豆| 一本到不卡免费一区二区| 欧美成人精精品一区二区频| 亚洲欧美另类综合偷拍| 韩国v欧美v日本v亚洲v| 欧美系列日韩一区| 欧美国产欧美综合| 日本成人中文字幕在线视频| 99久久久免费精品国产一区二区 | 国产精品2024| 欧美精品久久久久久久久老牛影院 | 亚洲精品一线二线三线无人区| 亚洲精品国产一区二区精华液 | 狂野欧美性猛交blacked| 91福利国产成人精品照片| 国产欧美一区二区精品性色 | 国产一区二区精品久久91| 欧美日本一区二区| 亚洲最色的网站| 成人18精品视频| 国产日本欧美一区二区| 日韩国产欧美在线视频| 欧美中文一区二区三区| 亚洲桃色在线一区| jizzjizzjizz欧美| 久久精品一区八戒影视| 久久精品国产99国产| 欧美日韩一区二区三区在线| 亚洲精品大片www| 不卡视频免费播放| 国产亚洲一本大道中文在线| 另类成人小视频在线| 正在播放亚洲一区| 丝袜亚洲精品中文字幕一区| 在线免费观看视频一区| 亚洲激情图片一区| 色天天综合久久久久综合片| 亚洲特级片在线| 91片在线免费观看| 亚洲欧美日韩系列| 色偷偷88欧美精品久久久| 亚洲精品日产精品乱码不卡| 99精品欧美一区二区三区小说| 国产精品毛片高清在线完整版| 国产不卡免费视频| 国产精品日日摸夜夜摸av| caoporn国产精品| 亚洲欧美在线观看| 在线免费观看不卡av| 亚洲午夜激情网页| 亚洲激情第一区| 色婷婷综合久久久| 亚洲免费看黄网站| 欧美色精品在线视频| 午夜激情久久久| 欧美大黄免费观看| 国产一区福利在线| 国产欧美一区二区三区网站| 91无套直看片红桃| 亚洲一二三级电影| 日韩欧美综合在线| 国产成人免费视| 亚洲欧美日韩国产一区二区三区| 欧美色图在线观看| 另类小说欧美激情| 国产精品黄色在线观看| 色呦呦一区二区三区| 日韩vs国产vs欧美| 久久久久九九视频| 91免费在线视频观看| 丝袜美腿亚洲色图| 国产亚洲午夜高清国产拍精品 | 中文字幕av资源一区| 91浏览器入口在线观看| 性做久久久久久| 国产亚洲精品资源在线26u| 日本高清不卡视频| 久久99国产精品尤物|