Client with select.select()

A[r]TA arta at NOSPAMx-stream.nl
Tue Jun 13 11:57:14 EDT 2000


> I think you also may have the wrong idea about the write-set parameter
> to select().  The test with select() is ``will I block?''  That is,
> if read-set returns a file descriptor, you may read from that descriptor
> without blocking - either there's data, or end of file or whatever may
> cause a non-blocking state on a blocking descriptor.  The same is true
> of the write set, mutatis mutandi.  The reader on the other end will
> probably ignore what you're writing, you just won't block.  Sockets
> are usually in this state.  I guess it's a good thing to check anyway,
> but by no means is there any implication that the other end of the socket
> has requested data.  ("block" means "wait".)

But if you want to write a telnet-client. The server requests for data,
isn't he?
Then you can check with the write-set and send some data.
Or am I missing something?


A[r]TA

--
-Life can kick your ass, but all you got to do is stand up and move on...







More information about the Python-list mailing list