jak poslat eof

Honza Pazdziora adelton na informatics.muni.cz
Čtvrtek Leden 2 16:56:41 MET 2003


On Mon, Dec 30, 2002 at 12:13:28PM +0100, Ondrej Koala Vacha wrote:
> 
> posilam pres socket jinemu programu (serveru) data. Ten je cte pres <> :
> 
> ..
> while ($new_sock = $sock->accept()) {
>   while (defined ($buf = <$new_sock>)) {
> 	# neco...
>   }
> }
> ..
> 
> Da se nejak poslat eof, aby ten vnitrni while skoncil? Jiste da, se to 
> napsat pres sysread, ale ted me zajima, jestli to jde.

Udelat proste close?

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
      ... all of these signs saying sorry but we're closed ...
------------------------------------------------------------------------


Další informace o konferenci Perl