Thread select() tut unverständliches: select, vec, fileno .... (3 answers)
Opened by Relais at 2003-08-29 19:07

esskar
 2003-08-29 23:14
#81358 #81358
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
frage:

wieso sieht dein code nicht so aus?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
for ( ; ; )
{
   if (($Timeout==0) || select(CMD, undef, undef, $Timeout))
   {
      unless(sysread(CMD, $buf, 1024))
      {
         $Error = "Unexpected EOF on command channel";
         return undef;
      }
   }

   ...

}


Nur damit ich es verstehe!\n\n

<!--EDIT|esskar|1062184499-->

View full thread select() tut unverständliches: select, vec, fileno ....