workerman icon indicating copy to clipboard operation
workerman copied to clipboard

Support for UNIX sockets

Open cayolblake opened this issue 3 years ago • 5 comments

Hi @walkor

Does workerman support creating UNIX socket servers?

cayolblake avatar May 20 '22 11:05 cayolblake

Yes, For example.

new Worker('unix:///your/path/of/xx.sock');

walkor avatar May 21 '22 11:05 walkor

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

cayolblake avatar May 21 '22 12:05 cayolblake

Just use stream_socket_client.

walkor avatar May 21 '22 12:05 walkor

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

uribes78 avatar Jan 12 '24 01:01 uribes78

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

uribes78 avatar Jan 12 '24 16:01 uribes78