update page now
Laravel Live Japan

Unix 域:Unix 和 UDG

unix://udg://

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

unix:// 提供了在 Unix 域中对套接字流连接的访问。 udg:// 提供了替代的传输器以用户数据报协议(UDP)来访问 Unix 域套接字。

Unix 域套接字和 Internet 域套接字不同,不需要端口号。在 fsockopen()portno 参数应被设为 0。

注意: Windows 不支持 Unix 域套接字。

添加备注

用户贡献的备注 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