pipeif.h

来自「本软件是TI公司免费提供的网络开发包 现在好象很难找到,有黑心的公司把它改一改,」· C头文件 代码 · 共 56 行

H
56
字号
/*
 *  Copyright 2006 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *
 *  @(#) TCP/IP_Network_Developers_Kit 1.91.00.08 08-22-2006 (ndk-a08)
 */
//----------------------------------------------------------------------
//  Ip Stack
//----------------------------------------------------------------------
//  File: pipeif.h
//
//  Pipe Object Public Include
//
// Author: Michael A. Denio
// Copyright 2000, 2003 by Texas Instruments Inc.
//----------------------------------------------------------------------
#include "fdtif.h"

#ifndef _PIPEIF_INC_
#define _PIPEIF_INC_


// Pipe Object Structure
typedef struct _pipe {
             FILEDESC     fd;           // File descriptor header
             struct _pipe *pConnect;    // Pointer to other end of pipe
             HANDLE       hSBRx;        // Rx Buffer
             INT32        TxSpace;      // Tx Space Required for "writeable"
        } PIPE;


//
// Pipe Access Functions
//

//------------------------------------------------------------------------
// General Access Functions (called from upper layers)
//
_extern int    PipeNew( HANDLE *phPipe1, HANDLE *phPipe2 );
_extern int    PipeClose( HANDLE hPipe );

_extern int    PipeCheck( HANDLE hPipe, int IoType );
#define  PIPE_READ       0
#define  PIPE_WRITE      1

_extern int    PipeStatus( HANDLE hPipe, int request, int *results );

_extern int    PipeRecv( HANDLE hPipe, INT8 *pBuf, INT32 size,
                        int flags, INT32 *pRetSize );
_extern int    PipeSend( HANDLE hPipe, INT8 *pBuf, INT32 size,
                        int flags, INT32 *pRetSize );

#endif

⌨️ 快捷键说明

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