Re: socket_set_block(); - question

From: Date: Fri, 26 Jul 2002 16:43:32 +0000
Subject: Re: socket_set_block(); - question
Groups: php.general 
Request: Send a blank email to php-general+get-109807@lists.php.net to get a copy of this message
>Hi, > >I found the function socket_set_block(); in ext/sockets/sockets.c (the >function is not documented) and I tried to use it but it seems to >doesn't take effect... >Why doesn't this function work ? Am I doing something wrong ? > >Here is my code: > > function sockRead($length = 1) { > socket_set_block($this->IcqSocket); > return @socket_read($this->IcqSocket, $length, >PHP_BINARY_READ); > socket_set_nonblock($this->IcqSocket); > } Wild Guess: It takes two args: The second one to turn blocking on/off. Without supplying the arg, you're turning it "on", maybe... -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#109807) next »