From da2c075e8d3491f1614d0a428f9e31568dad4027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Fri, 17 Aug 2012 14:05:44 +0800 Subject: [PATCH] use SESSION_CLIENT --- connection/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection/main.c b/connection/main.c index a62f3880..d5f5f468 100644 --- a/connection/main.c +++ b/connection/main.c @@ -117,9 +117,9 @@ _poll(struct connection_server * server) { if (size == 0) { connection_del(server->pool, c->fd); free(buffer); - skynet_send(server->ctx, NULL, c->addr, 0x7fffffff, NULL, 0, DONTCOPY); + skynet_send(server->ctx, NULL, c->addr, SESSION_CLIENT, NULL, 0, DONTCOPY); } else { - skynet_send(server->ctx, NULL, c->addr, 0x7fffffff, buffer, size, DONTCOPY); + skynet_send(server->ctx, NULL, c->addr, SESSION_CLIENT, buffer, size, DONTCOPY); } } }