📄 rfcnb-error.h
字号:
/* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation Version 1.0 RFCNB Error Response Defines Copyright (C) Richard Sharpe 1996*//* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*//* Error responses */#define RFCNBE_Bad -1 /* Bad response */#define RFCNBE_OK 0/* these should follow the spec ... is there one ?*/#define RFCNBE_NoSpace 1 /* Could not allocate space for a struct */#define RFCNBE_BadName 2 /* Could not translate a name */#define RFCNBE_BadRead 3 /* Read sys call failed */#define RFCNBE_BadWrite 4 /* Write Sys call failed */#define RFCNBE_ProtErr 5 /* Protocol Error */#define RFCNBE_ConGone 6 /* Connection dropped */#define RFCNBE_BadHandle 7 /* Handle passed was bad */#define RFCNBE_BadSocket 8 /* Problems creating socket */#define RFCNBE_ConnectFailed 9 /* Connect failed */#define RFCNBE_CallRejNLOCN 10 /* Call rejected, not listening on CN */#define RFCNBE_CallRejNLFCN 11 /* Call rejected, not listening for CN */#define RFCNBE_CallRejCNNP 12 /* Call rejected, called name not present */#define RFCNBE_CallRejInfRes 13/* Call rejetced, name ok, no resources */#define RFCNBE_CallRejUnSpec 14/* Call rejected, unspecified error */#define RFCNBE_BadParam 15/* Bad parameters passed ... */#define RFCNBE_Timeout 16/* IO Timed out *//* Text strings for the error responses */static const char *RFCNB_Error_Strings[] = { "RFCNBE_OK: Routine completed successfully.", "RFCNBE_NoSpace: No space available for a malloc call.", "RFCNBE_BadName: NetBIOS name could not be translated to IP address.", "RFCNBE_BadRead: Read system call returned an error. Check errno.", "RFCNBE_BadWrite: Write system call returned an error. Check errno.", "RFCNBE_ProtErr: A protocol error has occurred.", "RFCNBE_ConGone: Connection dropped during a read or write system call.", "RFCNBE_BadHandle: Bad connection handle passed.", "RFCNBE_BadSocket: Problems creating socket.", "RFCNBE_ConnectFailed: Connection failed. See errno.", "RFCNBE_CallRejNLOCN: Call rejected. Not listening on called name.", "RFCNBE_CallRejNLFCN: Call rejected. Not listening for called name.", "RFCNBE_CallRejCNNP: Call rejected. Called name not present.", "RFCNBE_CallRejInfRes: Call rejected. Name present, but insufficient resources.", "RFCNBE_CallRejUnSpec: Call rejected. Unspecified error.", "RFCNBE_BadParam: Bad parameters passed to a routine.", "RFCNBE_Timeout: IO Operation timed out ..."};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -