update page now

Unix ドメイン: Unix および UDG

unix:// および udg://

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

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

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

注意: Unix ドメインソケットは、Windows ではサポートされていません。

add a note

User Contributed Notes 1 note

up
12
Matthew Fortune
18 years ago
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.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant