Z
Zunbeltz Izaola
Hi
I'm porting a client writen in C++ to python. What is the way to get a
timeout in an select for one socket?
the c++ code is:
FD_ZERO(&fds);
FD_SET(fd_sock, &fds);
tv.tv_sec=2;
tv.tv_usec=0;
n = select(fd_sock+1,&fds,NULL,NULL,&tv);
sendto(...)
Thanks
Zunbeltz
I'm porting a client writen in C++ to python. What is the way to get a
timeout in an select for one socket?
the c++ code is:
FD_ZERO(&fds);
FD_SET(fd_sock, &fds);
tv.tv_sec=2;
tv.tv_usec=0;
n = select(fd_sock+1,&fds,NULL,NULL,&tv);
sendto(...)
Thanks
Zunbeltz