mbufSockLib.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* mbufSockLib.h - mbuf socket interface library header */
- /* Copyright 1984-1994 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,08nov94,dzb written.
- */
- #ifndef __INCmbufSockLibh
- #define __INCmbufSockLibh
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* includes */
- #include "mbufLib.h"
- /* function declarations */
- #if defined(__STDC__) || defined(__cplusplus)
- extern void * _mbufSockLibInit (void);
- extern int _mbufSockSend (int s, MBUF_ID mbufId, int mbufLen, int flags);
- extern int _mbufSockSendto (int s, MBUF_ID mbufId, int mbufLen, int flags,
- struct sockaddr *to, int tolen);
- extern int _mbufSockBufSend (int s, char *buf, int bufLen,
- VOIDFUNCPTR freeRtn, int freeArg, int flags);
- extern int _mbufSockBufSendto (int s, char *buf, int bufLen,
- VOIDFUNCPTR freeRtn, int freeArg, int flags,
- struct sockaddr *to, int tolen);
- extern MBUF_ID _mbufSockRecv (int s, int flags, int *pLen);
- extern MBUF_ID _mbufSockRecvfrom (int s, int flags, int *pLen,
- struct sockaddr *from, int *pFromLen);
- #else /* __STDC__ */
- extern void * _mbufSockLibInit ();
- extern int _mbufSockSend ();
- extern int _mbufSockSendto ();
- extern int _mbufSockBufSend ();
- extern int _mbufSockBufSendto ();
- extern MBUF_ID _mbufSockRecv ();
- extern MBUF_ID _mbufSockRecvfrom ();
- #endif /* __STDC__ */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCmbufSockLibh */