mirror of
https://github.com/mpv-player/mpv
synced 2024-11-11 00:15:33 +01:00
5bf473d5ca
This implements the JSON IPC protocol with named pipes, which are probably the closest Windows equivalent to Unix domain sockets in terms of functionality. Like with Unix sockets, this will allow mpv to listen for IPC connections and handle multiple IPC clients at once. A few cross platform libraries and frameworks (Qt, node.js) use named pipes for IPC on Windows and Unix sockets on Linux and Unix, so hopefully this will ease the creation of portable JSON IPC clients. Unlike the Unix implementation, this doesn't share code with --input-file, meaning --input-file on Windows won't understand JSON commands (yet.) Sharing code and removing the separate implementation in pipe-win32.c is definitely a possible future improvement. |
||
---|---|---|
.. | ||
cmd_list.c | ||
cmd_list.h | ||
cmd_parse.c | ||
cmd_parse.h | ||
event.c | ||
event.h | ||
input.c | ||
input.h | ||
ipc-unix.c | ||
ipc-win.c | ||
ipc.c | ||
keycodes.c | ||
keycodes.h | ||
pipe-win32.c |