⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tools.h

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 H
字号:
/***************************************************************************  tools.h  Network component  (c) 2003-2004 Daniel Campos Fernández <danielcampos@netcourrier.com>  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 1, 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.***************************************************************************/#include <termios.h>#ifdef __sun__  #include <sys/filio.h>  #include <strings.h>#endif#ifdef MSG_PEEK#ifdef MSG_NOSIGNAL  #define USE_MSG_NOSIGNAL(_code) _code#else  #include <signal.h>  #define MSG_NOSIGNAL 0  #define USE_MSG_NOSIGNAL(_code) \    { \      void (*_oldsigpipe)(int) = signal(SIGPIPE, SIG_IGN); \      _code ; \      signal(SIGPIPE, _oldsigpipe); \    }#endif#endifvoid Alloc_CallBack_Pointers(long nobjs,long **objs,long **scks);int search_by_integer(long *objlist,long nobj,long iData);int CheckConnection(int Socket);int IsHostPath(char *sCad,char **buf,int *port);void correct_url(char **buf,char *protocol);int ConvertBaudRate(int nBauds);int ConvertStopBits(int nStop);int ConvertDataBits(int nBits);int ConvertParity(int parity);void CloseSerialPort(int fd,struct termios *oldtio);int OpenSerialPort(int *fd,int iflow,struct termios *oldtio, \                   char *sName,int nBauds,int parity,int nBits,int nStop);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -