socket_shutdown

(PHP 4 >= 4.1.0, PHP 5)

socket_shutdown -- Shuts down a socket for receiving, sending, or both.

Description

bool socket_shutdown ( resource socket [, int how])

주의

이 함수는 실험적입니다. 이 함수의 작동, 함수의 이름, 그리고 이 함수에 대해 모든 문서는 이후의 PHP 릴리즈에서 예고 없이 변경할 수 있습니다. 이 함수의 사용에 관한 것은 사용자 책임입니다.

The socket_shutdown() function allows you to stop incoming, outgoing or all data (the default) from being sent through the socket

The value of how can be one of the following:

표 1. possible values for how

0 Shutdown socket reading
1 Shutdown socket writing
2 Shutdown socket reading and writing