sockio.h
来自「libminigui-1.3.0.tar.gz。 miniGUI的库函数源代码」· C头文件 代码 · 共 41 行
H
41 行
/*** $Id: sockio.h,v 1.7 2003/08/12 07:46:18 weiym Exp $**** sockio.h: routines for socket i/o.**** Copyright (C) 2003 Feynman Software.** Copyright (C) 2000 ~ 2002 Wei Yongming.**** Create date: 2000/12/xx*/#ifndef GUI_SOCKIO_H #define GUI_SOCKIO_H#ifndef MINIGUI_H#define SOCKERR_IO -1#define SOCKERR_CLOSED -2#define SOCKERR_INVARG -3#define SOCKERR_TIMEOUT -4#define SOCKERR_OK 0#ifdef __cplusplusextern "C" {#endif /* __cplusplus */int sock_write_t (int fd, const void* buff, int count, unsigned int timeout);int sock_read_t (int fd, void* buff, int count, unsigned int timeout);#define sock_write(fd, buff, count) sock_write_t(fd, buff, count, 0)#define sock_read(fd, buff, count) sock_read_t(fd, buff, count, 0)#ifdef __cplusplus}#endif /* __cplusplus */#endif // MINIGUI_H#endif // GUI_SOCKIO_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?