socket
socket copied to clipboard
Non-blocking socket and TLS functionality for PHP based on Amp.
Example ```php Loop::run(function () { $uri = "tcp://127.0.0.1:1337"; Loop::repeat(500, function () { echo 'Counters: '. Test::$constructInc . ' - ' . Test::$destructInc . PHP_EOL; echo 'Memory: ' . round(memory_get_usage() /...
`shutdownTLS` and `setupTLS` indicate that a sockets TLS can be setup or shutdown. However, an encrypted socket may want to expose that information without offering to change the TLS state...
I need connect to `ssl://gateway.sandbox.push.apple.com:2195` with certificate and passphrase. Example: https://gist.github.com/marchbold/393bd1b7828e30178899. How I can do it?
The logic to get the hash of the public key is implemented here: https://github.com/symfony/symfony/blob/51821353c0d5d42a828ce32579c4df09715d7758/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php#L78-L84
The package league/uri-parser is discontinued. I suggest upgrading to league/uri :)
Motivation: servers accepting connections from trusted peers do not know the expected peer name in advance. Therefore, it must be possible to accept incoming connections (validating their client certificate) without...
Follow up of https://github.com/symfony/symfony/pull/54179#discussion_r1514886587 Reading DnsSocketConnector, there is no easy way currently to hook between resolve() and stream_socket_client(). Providing a custom resolver doesn't help because of the inet_pton($host) shortcut. Hooking...
Is there any plan to support unix sockets like ```php $server = Socket\listen("server.sock"); while ($client = $server->accept()) { // You shouldn't spend too much time here, because that blocks accepting...