首页 >函数列表 >socket_shutdown

socket_shutdown

socket_shutdown

(PHP 4 >= 4.1.0, PHP 5)

socket_shutdownShuts down a socket for receiving, sending, or both

说明

bool socket_shutdown ( resource $socket [, int $how = 2 ] )

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

参数

socket

A valid socket resource created with socket_create().

how

The value of how can be one of the following:

possible values for how
0 Shutdown socket reading
1 Shutdown socket writing
2 Shutdown socket reading and writing

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.


  • socket_accept
  • socket_bind
  • socket_clear_error
  • socket_close
  • socket_connect
  • socket_create
  • socket_create_listen
  • socket_create_pair
  • socket_getpeername
  • socket_getsockname
  • socket_get_option
  • socket_last_error
  • socket_listen
  • socket_read
  • socket_recv
  • socket_recvfrom
  • socket_select
  • socket_send
  • socket_sendto
  • socket_set_block
  • socket_set_nonblock
  • socket_set_option
  • socket_shutdown
  • socket_strerror
  • socket_write
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道