walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.16k stars 2.26k forks source link

Support for UNIX sockets #761

Open cayolblake opened 2 years ago

cayolblake commented 2 years ago

Hi @walkor

Does workerman support creating UNIX socket servers?

walkor commented 2 years ago

Yes, For example.

new Worker('unix:///your/path/of/xx.sock');
cayolblake commented 2 years ago

And for establishing a client connection to it from another PHP code? Just use stream_socket_client or anything recommended/better?

walkor commented 2 years ago

Just use stream_socket_client.

uribes78 commented 10 months ago

Is it possible to use AsyncTcpConnection as a unix client connection to interact with a unix Worker?

uribes78 commented 9 months ago

Is it possible to use AsyncTcpConnection as a unix client connection to interact with a unix Worker?

Actually it can be use (AsyncTcpConnection) to make connections to unix socket. I tried and is working fine. Thanks for such a great tool @walkor