PHP マニュアル
前のページ |  | 次のページ

# php_stream_sock_open_unix

(no version information, might be only in CVS)

php_stream_sock_open_unix -- UNIXドメインソケットをオープンし、ストリームへ変換する

## 説明

php_stream * php_stream_sock_open_unix ( const char * path, int pathlen, int persistent, struct timeval * timeout)

php_stream_sock_open_unix() attempts to open the UNIX domain socket specified by `path`. `pathlen` specifies the length of `path`. If `timeout` is not NULL, it specifies a timeout period for the connection attempt. `persistent` indicates if the stream should be opened as a persistent stream. Generally speaking, this parameter will usually be 0.

> 注意 This function will not work under Windows, which does not implement unix domain sockets. A possible exception to this rule is if your PHP binary was built using cygwin. You are encouraged to consider this aspect of the portability of your extension before it's release.

> 注意 This function treats `path` in a binary safe manner, suitable for use on systems with an abstract namespace (such as Linux), where the first character of path is a NUL character.

前のページ | ホーム | 次のページ
php_stream_sock_open_host | 上に戻る | ストリーム構造体