SO_PASSCRED,允许或禁止SCM_CREDENTIALS控制消息的接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_PASSCRED位。 SO_TIMESTAMP,打开或关闭数据报中的时间戳接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_RCVTSTAMP位,如果打开,则还需设sock->sk->sk_flag中的SO...
SO_TIMESTAMP,打开或关闭数据报中的时间戳接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_RCVTSTAMP位,如果打开,则还需设sock->sk->sk_flag中的SOCK_TIMESTAMP位,同时,将全局变量 netstamp_needed加1。 SO_RCVLOWAT,设置接收数据前的缓冲区内的最小字节数。 在Linux中,缓冲区内的最...
SO_TIMESTAMP,打开或关闭数据报中的时间戳接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_RCVTSTAMP位,如果打开,则还需设sock->sk->sk_flag中的SOCK_TIMESTAMP位,同时,将全局变量netstamp_needed加1。 SO_RCVLOWAT,设置接收数据前的缓冲区内的最小字节数。 在Linux中,缓冲区内的最小...
If the SO_TIMESTAMP option is enabled on a SO_DGRAM or a SO_RAW socket, the recvmsg (3C) call will return a timestamp in the native data format, corresponding to when the datagram was received. The SO_EXCLBIND option is used to enable or disable the exclusive binding of a socket. ...
SOL_SOCKET SO_TCP_NO_COPY TCP Copy Mode Type int. 0 means turn off; non-0 means turn option on. Enables/disables copying of TCP input/output data directly to input/output packets. See below for details. SOL_SOCKET SO_TCP_TIMESTAMP TCP Disabled Type int. 0 means turn off; non-zero ...
or zero if the option is to be disabled. SO_LINGER uses astructlingerargument, defined in <sys/socket.h>, which specifies the desired state of the option and the linger interval (see below). SO_SNDTIMEO and SO_RCVTIMEO use astructtimevalargument, defined in <sys/time.h>. The following...
(change route) */ #define ICMP_ECHO 8 /* Echo Request */ #define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */ #define ICMP_PARAMETERPROB 12 /* Parameter Problem */ #define ICMP_TIMESTAMP 13 /* Timestamp Request */ #define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */ #define ICMP_...
avoid local TIME_WAIT when use port_probe in sky_pg_cluster by set setsockopt :SO_LINGER 一个PostgreSQL master-slave HA集群, 主节点被莫名的failover了. 在standby上看到的一些日志(/tmp/sky_pg_cluster.log) 在出现异常前, 经常有port_probe报出来的 connect failed的错误....
SO_TIMESTAMP,打开或关闭数据报中的时间戳接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_RCVTSTAMP位,如果打开,则还需设sock->sk->sk_flag中的SOCK_TIMESTAMP位,同时,将全局变量 netstamp_needed加1。 SO_RCVLOWAT,设置接收数据前的缓冲区内的最小字节数。
SO_TIMESTAMP,打开或关闭数据报中的时间戳接收。 该选项根据option_value的值,清或置sock->sk->sk_flag中的SOCK_RCVTSTAMP位,如果打开,则还需设sock->sk->sk_flag中的SOCK_TIMESTAMP位,同时,将全局变量 netstamp_needed加1。 SO_RCVLOWAT,设置接收数据前的缓冲区内的最小字节数。