in reply to
RTSP/RTP streaming server in Perl!
Have you set 'autoflush' on your IO handle? (see
perlipc
)
rdfield
Comment on
Re: RTSP/RTP streaming server in Perl!
Replies are listed 'Best First'.
Re: Re: RTSP/RTP streaming server in Perl!
by
amir
(Sexton)
on Feb 05, 2002 at 04:04 UTC
select(STDOUT); $| = 1;
[download]
Will the above code do the trick for autoflushing my socket filehandle?
[reply]
[d/l]
Re: Re: Re: RTSP/RTP streaming server in Perl!
by
rdfield
(Priest)
on Feb 05, 2002 at 09:29 UTC
Nope. That'll autoflush STDOUT: replace STDOUT with whatever name you've given your socket handle, and add
select(STDOUT);
after the
$| = 1;
which will reset the default filehandle.
rdfield
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom