网站首页
编程语言
数据库
系统相关
其他分享
编程问答
epfd
2024-09-30
linux串口(epoll)
void*thread_basedata(void*arg){inti,ret;//Allocatememoryforreadbuffer,setsizeaccordingtoyourneedsunsignedcharread_buf[DATA_LEN];//Normallyyouwouldn'tdothismemset()call,butsincewewilljustreceive