kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 1a680d8d09425cae26497d1b1dbb783922b77f03
parent f867882f4393e2b509445b6fa77e9644ca236f26
Author: Joris Vink <joris@coders.se>
Date:   Mon, 24 Nov 2014 11:09:19 +0100

Remove lingering diff file

Diffstat:
examples/websocket/out | 37-------------------------------------
1 file changed, 0 insertions(+), 37 deletions(-)

diff --git a/examples/websocket/out b/examples/websocket/out @@ -1,37 +0,0 @@ -diff --git a/websocket/src/websocket.c b/websocket/src/websocket.c -index d5848fd..630a355 100755 ---- a/websocket/src/websocket.c -+++ b/websocket/src/websocket.c -@@ -226,7 +226,7 @@ websocket_recv_frame(struct netbuf *nb) - break; - case WEBSOCKET_OP_TEXT: - case WEBSOCKET_OP_BINARY: -- websocket_send(c, WEBSOCKET_OP_BINARY, &nb->buf[mask_off + 4], len); -+ websocket_send(c, op, &nb->buf[mask_off + 4], len); - break; - case WEBSOCKET_OP_TERMINATE: - kore_connection_disconnect(c); -@@ -248,8 +248,11 @@ websocket_recv_frame(struct netbuf *nb) - void - websocket_send(struct connection *c, u_int8_t op, void *data, size_t len) - { -- u_int8_t len_1; -+ size_t i; -+ u_int8_t *p; -+ u_int32_t mask; - struct kore_buf *frame; -+ u_int8_t len_1, byte; - - kore_log(LOG_NOTICE, "%p: sending %ld bytes", c, len); - -@@ -259,8 +262,10 @@ websocket_send(struct connection *c, u_int8_t op, void *data, size_t len) - frame = kore_buf_create(132); - (void)memset(frame->data, '\0', frame->length); - -+ mask = 0; - kore_buf_append(frame, &op, sizeof(op)); - kore_buf_append(frame, &len_1, sizeof(len_1)); -+ kore_buf_append(frame, &mask, sizeof(mask)); - kore_buf_append(frame, data, len); - - net_send_queue(c, frame->data, frame->offset, NULL, NETBUF_LAST_CHAIN);