PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

socket_set_timeout> <socket_get_status
Last updated: Sun, 25 Nov 2007

view this page in

socket_set_blocking

(PHP 4, PHP 5)

socket_set_blocking — 소켓의 모드를 설정 (blocking 모드/ non-blocking 모드)

Description

int socket_set_blocking ( int $socket descriptor , int $mode )

modeFALSE이면, 소켓 서술자는 모드를 non-blocking 모드로 전환할 것입니다.the given socket 그리고 TRUE일 경우 서술자는 blocking 모드로 전환할 것입니다. 이것의 효과는 소켓에서 읽어들인 fgets()와 비슷합니다. non-blocking 모드에서 fgets()호출은 항상 소켓에서 사용가능하게 되기를 대기하고 있는 데이타를 blocking 모드일 때 바로 반환합니다. will always return right away while in blocking mode it will wait for data to become available on the socket.

이 함수는 이전에는 set_socket_blocking()로 불려 졌지만 지금은 그렇게 사용되지 않습니다.



add a note add a note User Contributed Notes
socket_set_blocking
steve at petabit dot com
19-Aug-2004 10:44
Versions of PHP below 4.3 will use socket_set_blocking() but will not understand stream_set_blocking().

socket_set_timeout> <socket_get_status
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites