socket
socket copied to clipboard
Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
> Originally reported 2016-10-04 by @arnaud-lb: https://github.com/reactphp/socket-client/issues/69
...allows to capture your peer certificate and/or it's chain
Currently when dealing with a `UnixServer`, its connections do not return a value for `getRemoteAddress`, the returned value is actually `NULL`. I`d like it to return the PID of the...
# ReactPHP v3 is going to happen! 🎉 We're committed to work on the next major version of ReactPHP. We've started working on this a while ago and believe it's...
This PR introduces the functionality required to build opportunistic TLS clients and servers with ReactPHP. It does so by introducing a prefix to `tls://`, namely `opportunistic`, to create `opportunistic+tls://example.com:5432` for...
Sets socket options for the socket https://www.php.net/manual/en/function.socket-set-option.php
https://github.com/reactphp/socket/blob/def0730288b2a321db04f22caf86259ab2975cc7/src/TcpConnector.php#L91 This should be handled more gracefully by returning with a rejected promise if it fails to connect.