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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? socketvar.h

?? ecos下的gui開發(fā)源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
//==========================================================================
//
//      include/sys/socketvar.h
//
//==========================================================================
//####BSDCOPYRIGHTBEGIN####
//
// -------------------------------------------
//
// Portions of this software may have been derived from OpenBSD, 
// FreeBSD or other sources, and are covered by the appropriate
// copyright disclaimers included herein.
//
// Portions created by Red Hat are
// Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
//
// -------------------------------------------
//
//####BSDCOPYRIGHTEND####
//==========================================================================

/*-
 * Copyright (c) 1982, 1986, 1990, 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.
 *
 *	@(#)socketvar.h	8.3 (Berkeley) 2/19/95
 * $FreeBSD: src/sys/sys/socketvar.h,v 1.46.2.6 2001/08/31 13:45:49 jlemon Exp $
 */

#ifndef _SYS_SOCKETVAR_H_
#define _SYS_SOCKETVAR_H_

#include <sys/queue.h>			/* for TAILQ macros */

/*
 * Kernel structure per socket.
 * Contains send and receive buffer queues,
 * handle on protocol and pointer to protocol
 * private data and error information.
 */
typedef	u_quad_t so_gen_t;

struct accept_filter;

struct socket {
	struct	vm_zone *so_zone;	/* zone we were allocated from */
	short	so_type;		/* generic type, see socket.h */
	short	so_options;		/* from socket call, see socket.h */
	short	so_linger;		/* time to linger while closing */
	short	so_state;		/* internal state flags SS_*, below */
	caddr_t	so_pcb;			/* protocol control block */
	struct	protosw *so_proto;	/* protocol handle */
/*
 * Variables for connection queuing.
 * Socket where accepts occur is so_head in all subsidiary sockets.
 * If so_head is 0, socket is not related to an accept.
 * For head socket so_incomp queues partially completed connections,
 * while so_comp is a queue of connections ready to be accepted.
 * If a connection is aborted and it has so_head set, then
 * it has to be pulled out of either so_incomp or so_comp.
 * We allow connections to queue up based on current queue lengths
 * and limit on number of queued connections for this socket.
 */
	struct	socket *so_head;	/* back pointer to accept socket */
	TAILQ_HEAD(, socket) so_incomp;	/* queue of partial unaccepted connections */
	TAILQ_HEAD(, socket) so_comp;	/* queue of complete unaccepted connections */
	TAILQ_ENTRY(socket) so_list;	/* list of unaccepted connections */
	short	so_qlen;		/* number of unaccepted connections */
	short	so_incqlen;		/* number of unaccepted incomplete
					   connections */
	short	so_qlimit;		/* max number queued connections */
	short	so_timeo;		/* connection timeout */
	u_short	so_error;		/* error affecting connection */
	struct  sigio *so_sigio;	/* information for async I/O or
					   out of band data (SIGURG) */
	u_long	so_oobmark;		/* chars to oob mark */
	TAILQ_HEAD(, aiocblist) so_aiojobq; /* AIO ops waiting on socket */
/*
 * Variables for socket buffering.
 */
	struct	sockbuf {
		u_long	sb_cc;		/* actual chars in buffer */
		u_long	sb_hiwat;	/* max actual char count */
		u_long	sb_mbcnt;	/* chars of mbufs used */
		u_long	sb_mbmax;	/* max chars of mbufs to use */
		long	sb_lowat;	/* low water mark */
		struct	mbuf *sb_mb;	/* the mbuf chain */
		struct	selinfo sb_sel;	/* process selecting read/write */
		short	sb_flags;	/* flags, see below */
		short	sb_timeo;	/* timeout for read/write */
	} so_rcv, so_snd;
#define	SB_MAX		(256*1024)	/* default for max chars in sockbuf */
#define	SB_LOCK		0x01		/* lock on data queue */
#define	SB_WANT		0x02		/* someone is waiting to lock */
#define	SB_WAIT		0x04		/* someone is waiting for data/space */
#define	SB_SEL		0x08		/* someone is selecting */
#define	SB_ASYNC	0x10		/* ASYNC I/O, need signals */
#define	SB_UPCALL	0x20		/* someone wants an upcall */
#define	SB_NOINTR	0x40		/* operations not interruptible */
#define SB_AIO		0x80		/* AIO operations queued */
#define SB_KNOTE	0x100		/* kernel note attached */

	void	(*so_upcall) __P((struct socket *, void *, int));
	void	*so_upcallarg;
	struct	ucred *so_cred;		/* user credentials */
	/* NB: generation count must not be first; easiest to make it last. */
	so_gen_t so_gencnt;		/* generation count */
	void	*so_emuldata;		/* private data for emulators */
	struct	so_accf { 
		struct	accept_filter *so_accept_filter;
		void	*so_accept_filter_arg;	/* saved filter args */
		char	*so_accept_filter_str;	/* saved user args */
	} *so_accf;
};

/*
 * Socket state bits.
 */
#define	SS_NOFDREF		0x0001	/* no file table ref any more */
#define	SS_ISCONNECTED		0x0002	/* socket connected to a peer */
#define	SS_ISCONNECTING		0x0004	/* in process of connecting to peer */
#define	SS_ISDISCONNECTING	0x0008	/* in process of disconnecting */
#define	SS_CANTSENDMORE		0x0010	/* can't send more data to peer */
#define	SS_CANTRCVMORE		0x0020	/* can't receive more data from peer */
#define	SS_RCVATMARK		0x0040	/* at mark on input */

#define	SS_NBIO			0x0100	/* non-blocking ops */
#define	SS_ASYNC		0x0200	/* async i/o notify */
#define	SS_ISCONFIRMING		0x0400	/* deciding to accept connection req */

#define	SS_INCOMP		0x0800	/* unaccepted, incomplete connection */
#define	SS_COMP			0x1000	/* unaccepted, complete connection */
#define	SS_ISDISCONNECTED	0x2000	/* socket disconnected from peer */

/*
 * Externalized form of struct socket used by the sysctl(3) interface.
 */
struct	xsocket {
	size_t	xso_len;	/* length of this structure */
	struct	socket *xso_so;	/* makes a convenient handle sometimes */
	short	so_type;
	short	so_options;
	short	so_linger;
	short	so_state;
	caddr_t	so_pcb;		/* another convenient handle */
	int	xso_protocol;
	int	xso_family;
	short	so_qlen;
	short	so_incqlen;
	short	so_qlimit;
	short	so_timeo;
	u_short	so_error;
	pid_t	so_pgid;
	u_long	so_oobmark;
	struct	xsockbuf {
		u_long	sb_cc;
		u_long	sb_hiwat;
		u_long	sb_mbcnt;
		u_long	sb_mbmax;
		long	sb_lowat;
		short	sb_flags;
		short	sb_timeo;
	} so_rcv, so_snd;
	uid_t	so_uid;		/* XXX */
};

/*
 * Macros for sockets and socket buffering.
 */

/*
 * Do we need to notify the other side when I/O is possible?
 */
#define	sb_notify(sb)	(((sb)->sb_flags & (SB_WAIT | SB_SEL | SB_ASYNC | \
    SB_UPCALL | SB_AIO | SB_KNOTE)) != 0)

/*
 * How much space is there in a socket buffer (so->so_snd or so->so_rcv)?
 * This is problematical if the fields are unsigned, as the space might
 * still be negative (cc > hiwat or mbcnt > mbmax).  Should detect
 * overflow and return 0.  Should use "lmin" but it doesn't exist now.
 */
#define	sbspace(sb) \
    ((long) imin((int)((sb)->sb_hiwat - (sb)->sb_cc), \
	 (int)((sb)->sb_mbmax - (sb)->sb_mbcnt)))

/* do we have to send all at once on a socket? */
#define	sosendallatonce(so) \
    ((so)->so_proto->pr_flags & PR_ATOMIC)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产三级| 国产精品毛片大码女人| 国产欧美视频在线观看| 亚洲在线中文字幕| 国产一区二区三区黄视频| 日本韩国一区二区三区视频| 日韩一级片网址| 亚洲最新视频在线播放| 国产成人av福利| 欧美一二区视频| 亚洲国产成人91porn| 岛国一区二区在线观看| 26uuu精品一区二区三区四区在线| 日韩理论电影院| 国产精品99久| 精品美女在线观看| 日本欧美一区二区三区| 欧美无人高清视频在线观看| 国产精品美女一区二区三区| 国产精品一级片| 亚洲精品在线一区二区| 老汉av免费一区二区三区| 欧美日韩在线不卡| 亚洲综合免费观看高清在线观看| 成人av动漫在线| 国产精品系列在线| 国产69精品久久久久毛片| 久久久91精品国产一区二区精品 | 欧美精品自拍偷拍动漫精品| 国产精品毛片大码女人| bt7086福利一区国产| 亚洲国产精品精华液ab| 国产乱人伦偷精品视频免下载| 欧美一卡在线观看| 日韩av电影天堂| 制服丝袜av成人在线看| 日韩黄色在线观看| 日韩欧美一级二级三级| 久久精品国产一区二区三| 日韩免费在线观看| 国产精品亚洲专一区二区三区| 精品理论电影在线| 国产黑丝在线一区二区三区| 欧美激情综合网| 99久久伊人久久99| 伊人夜夜躁av伊人久久| 欧美午夜精品久久久久久超碰| 亚洲国产wwwccc36天堂| 日韩一级二级三级精品视频| 国产综合色产在线精品| 久久看人人爽人人| 色综合网色综合| 亚洲国产成人高清精品| 精品三级在线观看| 成人av免费在线播放| 尤物在线观看一区| 日韩午夜中文字幕| 成人激情图片网| 亚洲一二三四在线| 欧美电影免费观看高清完整版在线| 紧缚奴在线一区二区三区| 欧美激情一区二区三区蜜桃视频| 91欧美激情一区二区三区成人| 亚洲国产日韩综合久久精品| 欧美大胆人体bbbb| 99久久er热在这里只有精品15| 亚洲黄色性网站| 久久这里只精品最新地址| 99re这里只有精品首页| 热久久一区二区| 中文字幕日韩精品一区| 欧美精品成人一区二区三区四区| 国模无码大尺度一区二区三区| 国产精品免费人成网站| 在线成人高清不卡| 99在线精品一区二区三区| 视频一区视频二区中文| 中文乱码免费一区二区| 欧美精品乱码久久久久久| 国产美女av一区二区三区| 亚洲欧美偷拍三级| 欧美精品一区二| 欧美日韩一二三| 91在线观看免费视频| 激情五月激情综合网| 亚洲精品国产一区二区精华液 | 国产精品久久久久久久午夜片| 在线看国产一区| 国产成人av电影在线| 日韩电影在线免费看| 亚洲免费观看在线视频| 久久女同精品一区二区| 欧美剧在线免费观看网站| 色综合咪咪久久| 国产sm精品调教视频网站| 七七婷婷婷婷精品国产| 一区二区三区毛片| 亚洲欧洲日产国产综合网| 久久综合给合久久狠狠狠97色69| 91精品福利在线一区二区三区| 日本大香伊一区二区三区| 国产不卡视频在线播放| 国产一区二区三区四区五区美女| 日本aⅴ精品一区二区三区 | 最新热久久免费视频| 国产欧美一区二区在线| 久久综合久久综合久久| 欧美成人免费网站| 欧美一区二区女人| 欧美一区二区日韩一区二区| 欧美探花视频资源| 欧美日韩高清在线播放| 欧美亚一区二区| 欧美午夜精品一区二区三区| 91国产丝袜在线播放| 色狠狠综合天天综合综合| 91小视频免费观看| 色噜噜久久综合| 91福利视频网站| 在线成人小视频| 精品乱人伦一区二区三区| 久久女同精品一区二区| 国产日韩av一区| 综合色天天鬼久久鬼色| 亚洲特级片在线| 亚洲一区二区精品3399| 日韩国产欧美在线播放| 免费成人在线观看视频| 狠狠色综合日日| 成人黄色网址在线观看| 99久久伊人精品| 欧美日韩1区2区| 精品久久一区二区| 欧美国产激情二区三区| 中文字幕字幕中文在线中不卡视频| 亚洲免费观看视频| 偷拍一区二区三区四区| 国内精品国产三级国产a久久| 成人夜色视频网站在线观看| 91视频.com| 777a∨成人精品桃花网| 亚洲精品一区二区三区影院 | 精品国产3级a| 国产精品人人做人人爽人人添| 亚洲伦理在线精品| 日本中文字幕一区| caoporn国产精品| 欧美久久久影院| 国产欧美一区二区精品性| 亚洲日韩欧美一区二区在线| 日韩和欧美的一区| 成人深夜视频在线观看| 欧美群妇大交群的观看方式| www一区二区| 亚洲一二三专区| 国产69精品久久99不卡| 欧美午夜理伦三级在线观看| 久久久久国产精品免费免费搜索| 亚洲卡通动漫在线| 国产精品一区不卡| 制服丝袜av成人在线看| 国产精品不卡视频| 国内精品伊人久久久久av影院| 91久久精品网| 国产婷婷一区二区| 午夜视黄欧洲亚洲| 99精品热视频| 久久久亚洲午夜电影| 亚洲高清视频的网址| 成人av资源站| 日韩视频在线观看一区二区| 亚洲女同一区二区| 国产精品一二三四区| 91精品国产91久久久久久最新毛片| 国产精品不卡一区二区三区| 久久99久久99| 欧美理论片在线| 亚洲一级片在线观看| aaa欧美色吧激情视频| 久久久亚洲精华液精华液精华液| 天天综合网 天天综合色| 91麻豆免费视频| 国产精品久久久久影院老司| 国产剧情在线观看一区二区| 欧美蜜桃一区二区三区| 9l国产精品久久久久麻豆| 国产欧美日韩亚州综合 | 国产成人在线观看| 91麻豆精品国产91久久久更新时间| 国产精品欧美极品| 国产成人av电影免费在线观看| 欧美成人a视频| 蜜桃视频在线观看一区| 欧美老肥妇做.爰bbww| 午夜精品福利一区二区三区蜜桃| av电影一区二区| 最新高清无码专区| 91免费视频网址| 亚洲女性喷水在线观看一区| 菠萝蜜视频在线观看一区|