server: Extract most logic into the new socket abstraction

- Move event loop code into event/socket
- Reimplement server.c on top of the new SocketWatcher class
- Adapt msgpack_rpc/channel.c
This commit is contained in:
Thiago de Arruda
2015-07-16 23:10:22 -03:00
parent ac2bd02561
commit 9d8d2b7fa8
5 changed files with 241 additions and 188 deletions

View File

@@ -5,6 +5,7 @@
#include <uv.h>
#include "nvim/api/private/defs.h"
#include "nvim/event/socket.h"
#include "nvim/vim.h"
#define METHOD_MAXLEN 512