diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-27 15:09:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-27 15:09:14 -0300 |
commit | 1b43e5c47e3887696d53573fba7fce6221888794 (patch) | |
tree | 1624bebe6b86dba6793e812e057a54d39595a965 /src/nvim/os/server.c | |
parent | 277554a9ebaaa34bea1862802254db9b9c0f92d1 (diff) | |
parent | b8e563f516a6d184c36d15b8b9c795f84fd40983 (diff) | |
download | rneovim-1b43e5c47e3887696d53573fba7fce6221888794.tar.gz rneovim-1b43e5c47e3887696d53573fba7fce6221888794.tar.bz2 rneovim-1b43e5c47e3887696d53573fba7fce6221888794.zip |
Merge branch 'remove-multiple-protocol-support'
Diffstat (limited to 'src/nvim/os/server.c')
-rw-r--r-- | src/nvim/os/server.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/nvim/os/server.c b/src/nvim/os/server.c index 7b2326556c..ee9a2e592c 100644 --- a/src/nvim/os/server.c +++ b/src/nvim/os/server.c @@ -5,7 +5,6 @@ #include <uv.h> -#include "nvim/os/channel_defs.h" #include "nvim/os/channel.h" #include "nvim/os/server.h" #include "nvim/os/os.h" @@ -25,8 +24,6 @@ typedef enum { } ServerType; typedef struct { - // Protocol for channels established through this server - ChannelProtocol protocol; // Type of the union below ServerType type; @@ -59,8 +56,7 @@ void server_init() free(listen_address); } - server_start((char *)os_getenv("NEOVIM_LISTEN_ADDRESS"), - kChannelProtocolMsgpack); + server_start((char *)os_getenv("NEOVIM_LISTEN_ADDRESS")); } void server_teardown() @@ -80,7 +76,7 @@ void server_teardown() }); } -void server_start(char *endpoint, ChannelProtocol prot) +void server_start(char *endpoint) { char addr[ADDRESS_MAX_SIZE]; @@ -101,8 +97,6 @@ void server_start(char *endpoint, ChannelProtocol prot) Server *server = xmalloc(sizeof(Server)); char ip[16], *ip_end = strrchr(addr, ':'); - server->protocol = prot; - if (!ip_end) { ip_end = strchr(addr, NUL); } @@ -229,7 +223,7 @@ static void connection_cb(uv_stream_t *server, int status) return; } - channel_from_stream(client, srv->protocol); + channel_from_stream(client); } static void free_client(uv_handle_t *handle) |