📄 flags.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/09/20 10:19:17 $* $Source: M:/psisrc/stack/incl/rcs/flags.h $* $Revision: 1.7 $*************************************************************************** File Description: Definitions and Macros for dealing with common* flags (which apply to sockets)**************************************************************************/#ifndef _FLAGS_#define _FLAGS_#include "config.h"#include "ccdep.h"/* flags reserved in all common flag fields */#define F_BLOCKING MSG_BLOCKING /* transaction can block */#define F_NONBLOCKING MSG_NONBLOCKING /* transaction cannot block */#define F_FDBROADCAST MSG_FDBROADCAST /* want full duplex broadcasts *//* blocking / status is a tri-state thing: F_BLOCKING means we want * a status back and are willing and able to sleep; F_NONBLOCKING means * we want a status back immediately without sleeping; neither of these * means we don't care to see a status back, allowing queueing of processing * at appropriate places. */#define F_BS_MASK (F_BLOCKING|F_NONBLOCKING)#define F_COMM_MASK (F_BS_MASK | F_FDBROADCAST)#define give_bs(f) ((f)&F_BS_MASK)#define no_bs(f) bC2((f),F_BLOCKING,F_NONBLOCKING)#define F_NOBS 0 /* for clarity */#define can_block(flags) bT1((flags),F_BLOCKING)#define cant_block(flags) bF1((flags),F_BLOCKING)#define want_status(flags) (!bF2((flags),F_BLOCKING,F_NONBLOCKING))#endif /*_FLAGS_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -