UDP sockets

Zunbeltz Izaola zunbeltz at wm.lc.ehu.es.XXX
Wed Oct 22 05:15:35 EDT 2003


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
 
-- 
Remove XXX from email: zunbeltz at wm.lc.ehu.esXXX




More information about the Python-list mailing list