typedef struct tcp_client
{
u8 tcpStep,tcpSec;
char serverIp[30];//保存DNS后的IP
u16 serverPort;
s16 sock;
u8* txdat;
u16 txlen;
void (*tcpRxData)(u8 *data, u16 len); // 指针函数,指向一个接受两个参数并返回void的函�??
void (*tcpSendData)(u8 *data, u16 len);
void (*tcpSendOk)(void);
}sTcpClient;
#ifdef DEBUG_ON
#define DEBUG(fmt, args…) printf(“[FILE = %s][FUNCTION = %s][LINE = %d] [“fmt”]\n”,FILE,FUNCTION,LINE,##args)
#else
#define DEBUG(fmt, args…) do{}while(0)
#endif

876

被折叠的 条评论
为什么被折叠?



