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

search for in the

PHP 자료형 비교표> <인터넷 도메인: TCP, UDP, SSL, TLS
Last updated: Fri, 30 Jan 2009

view this page in

유닉스 도메인: Unix와 UDG

unix://udg:// (udg://는 PHP 5부터)

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

unix://는 유닉스 도메인에 대한 소켓 스트림 접속 시도를 제공한다. udg://는 사용자 데이터그램 프로토콜을 사용하는 유닉스 도메인 소켓에 대한 대체 전송을 제공한다.

유닉스 도메인 소켓은 인터넷 도메인 소켓과는 달리 포트 번호를 쓰지 않는다. fsockopen()에서 portno 인수는 0이 되어야 한다.



add a note add a note User Contributed Notes
유닉스 도메인: Unix와 UDG
Matthew Fortune
16-Feb-2007 01: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 | sitemap | contact | advertising | mirror sites