kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c322bbd3c8be349fbf7639173b078476703c4c71
parent 28e48727a56263ce7466e3cc69419a7cbe722a78
Author: Joris Vink <joris@coders.se>
Date:   Mon, 22 Jun 2015 22:20:42 +0200

Kill the websocket message type. We're not there yet.

Diffstat:
includes/kore.h | 3---
src/msg.c | 8--------
2 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/includes/kore.h b/includes/kore.h @@ -365,9 +365,6 @@ struct kore_timer { TAILQ_ENTRY(kore_timer) list; }; -/* These are reserved message types. */ -#define KORE_MSG_WEBSOCKET 1 - struct kore_msg { u_int8_t id; u_int32_t length; diff --git a/src/msg.c b/src/msg.c @@ -33,7 +33,6 @@ static struct msg_type *msg_type_lookup(u_int8_t); static int msg_recv_worker(struct netbuf *); static int msg_recv_parent(struct netbuf *); static int msg_recv_worker_data(struct netbuf *); -static void msg_type_websocket(const void *, u_int32_t); static void msg_disconnected_parent(struct connection *); void @@ -82,8 +81,6 @@ kore_msg_parent_remove(struct kore_worker *kw) void kore_msg_worker_init(void) { - kore_msg_register(KORE_MSG_WEBSOCKET, msg_type_websocket); - worker->msg[1] = kore_connection_new(NULL); worker->msg[1]->fd = worker->pipe[1]; worker->msg[1]->read = net_read; @@ -175,11 +172,6 @@ msg_disconnected_parent(struct connection *c) kore_log(LOG_ERR, "failed to send SIGQUIT: %s", errno_s); } -static void -msg_type_websocket(const void *data, u_int32_t len) -{ -} - static struct msg_type * msg_type_lookup(u_int8_t id) {