33 lines
1.6 KiB
C
33 lines
1.6 KiB
C
/***************************************************************************************************
|
|
文件名: eth2lib.h
|
|
----------------------------------------------------------------------------
|
|
描述 : eth2lib.c 的头文件
|
|
----------------------------------------------------------------------------
|
|
修改日志 :
|
|
日期 姓名 操作
|
|
----------------------------------------------------------------------------
|
|
2020-11-25 陈云洲 创建
|
|
***************************************************************************************************/
|
|
|
|
#ifndef _ETH2LIB_H_
|
|
#define _ETH2LIB_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int eth2lib_udp_send( const unsigned char * pucTxBuf, const unsigned short usTxSize,const char * pucRemoteIP, const unsigned short usRemotePort);
|
|
int eth2lib_udp_recv(unsigned char * const pucRxBuf, const unsigned short usRxSize ,char * const pcRemoteIP, unsigned short * const pusRemotePort);
|
|
|
|
int eth2lib_init(const char * pcLocalMac,
|
|
const char * pcLocalIp,
|
|
const char * pcLocalMask,
|
|
const char * pcLocalGateway,
|
|
const unsigned short usLocalUdpPort);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|