What protocols can PHP somewhere to zakonektitsya in principle?

What, in principle, the protocols can PHP somewhere to connect without writing their extensions? Well, for example HTTP, Memcache (vk.com use it as a transport PHP <-> C daemons), MySQL.

What else?

Objective: to gash the most simple server in C++ / Python using this Protocol to PHP most cheap could throw on this server kilobytes of arbitrary data well, or at least JSON. Why vk.com transport with demons made it on MC and not on the HTTP overhead is probably less HTTP a ton of text headers (how does MC Protocol I don't know). Why not do something different - apparently Mc is quite simple.

What out of the box simple and angry is there more?
Interested in something higher-level HTTP level / MC implemented for compiled code (core php and its packaged extensions), called in a couple of lines of code of the form

$resp = request("1.2.3.4", 5515, "{ 'r' : 'request', 'param' : 42 }");
June 10th 19 at 15:40
2 answers
June 10th 19 at 15:42
What prevents you from using mimkes/radish for this purpose?

In General, two options.
If puff and your server on the same machine can use UNIX sockets.
If different, that, or the http API (which is very simple) or queue for memcache/radish/ETS (which zamorochena and the fact that not all necessary)
Don't need any in-memory store, you need to immediately with minimum delay to take data from PHP and handle or lose data if my server is dead. - roslyn.Rice commented on June 10th 19 at 15:45
June 10th 19 at 15:44

$xportlist = stream_get_transports();
print_r($xportlist);
?>

Array (
[0] => tcp
[1] => udp
[2] => unix
[3] => udg
)
this list depends on how assembled the puff. - roslyn.Rice commented on June 10th 19 at 15:47

Find more questions by tags Data transmission protocolsPHP