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

search for in the

PHP 型の比較表> <Internet ドメイン: TCP、UDP、SSL、および TLS
[edit] Last updated: Fri, 10 Feb 2012

view this page in

Unix ドメイン: Unix および UDG

unix:// および udg:// (udg:// は PHP 5 以降)

  • unix:///tmp/mysock
  • udg:///tmp/mysock

unix:// は、Unix ドメインを使用したソケットストリーム 接続へのアクセスを提供します。udg:// は、UDP を使用した別方式での Unix ドメインソケットのトランスポートを提供します。

Unix ドメインソケットは、Internet ドメインソケットと異なり ポート番号を受け付けません。fsockopen() の場合、 portno パラメータは 0 に設定します。



add a note add a note User Contributed Notes Unix ドメイン: Unix および UDG
Matthew Fortune 16-Feb-2007 12:03
It appears that fsockopen prior to php5 did not need the unix:// qualifier when opening a unix domain socket:

php4: fsockopen("/tmp/mysocket"......);

php5: fsockopen("unix:///tmp/mysocket"......);

This caught me out when upgrading.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites