getsockopt(fdsocket,SOL_SOCKET,SO_RCVBUF,(void *)&n, &m);
getsockopt(fdsocket,SOL_SOCKET,SO_SNDBUF,(void *)&n, &m);
To find out more, do "man getsockopt"
To find the current bytes in the socket's buffer:
ioctl(fd,FIONREAD,&bytes_available)
ioctl(fd,FIONWRITE,&bytes_available)
To find out more, do "man ioctl"
No comments:
Post a Comment