大家好,又见面了,我是你们的朋友全栈君。
linux下判断一个文件描述符是否可读可用ioctl,参数FIONREAD,包含头文件unistd.h
windows下有个类似的ioctlsocket,实现了ioctl的部分功能,也可以实现同样的功能。
https://blog.csdn.net/tgdzsjh/article/details/17142949
https://blog.csdn.net/wy_kath/article/details/8799811
https://www.cnblogs.com/kunhu/p/3606427.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/163634.html原文链接:https://javaforall.net