diff options
| author | Maxime Coste <mawww@kakoune.org> | 2016-12-01 20:11:09 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2016-12-01 20:11:09 +0000 |
| commit | 8c862c4eea636b2d60c360e1fdebc94e2bdfd6d1 (patch) | |
| tree | ebdfe70be9ec8eaf16490b4d2c6ecc0c7ac9ee07 /src/file.hh | |
| parent | 95c1528342c83a8ec599b2f49957d840d9695e8f (diff) | |
Only write to remote socket when we know they are writable
Buffer data (in an horribly innefficient way for now), and use the
event manager to watch for the socket being ready for a write.
Fixes #945
Diffstat (limited to 'src/file.hh')
| -rw-r--r-- | src/file.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file.hh b/src/file.hh index ae1d9db2..89d4e45e 100644 --- a/src/file.hh +++ b/src/file.hh @@ -30,6 +30,7 @@ std::pair<StringView, StringView> split_path(StringView path); String get_kak_binary_path(); bool fd_readable(int fd); +bool fd_writable(int fd); String read_fd(int fd, bool text = false); String read_file(StringView filename, bool text = false); void write(int fd, StringView data); |
