update : 2015.11.03
php.shukuma.com검색:
|
stream_socket_server(PHP 5) stream_socket_server — Create an Internet or Unix domain server socket 설명
resource stream_socket_server
( string
$local_socket
[, int &$errno
[, string &$errstr
[, int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN
[, resource $context
]]]] )
Creates a stream or datagram socket on the specified
This function only creates a socket, to begin accepting connections use stream_socket_accept(). 인수
반환값
Returns the created stream, or 예제
Example #1 Using TCP server sockets
<?php The example below shows how to act as a time server which can respond to time queries as shown in an example on stream_socket_client().
Example #2 Using UDP server sockets
<?php 주의
참고
|