Increase message size 16M(24bit) limit to 56bit on 64bit arch

This commit is contained in:
Cloud Wu
2015-08-05 12:23:35 +08:00
parent b5244b96aa
commit aff73cbed7
11 changed files with 31 additions and 24 deletions

View File

@@ -1,6 +1,8 @@
#include "skynet.h"
#include "skynet_harbor.h"
#include "skynet_server.h"
#include "skynet_mq.h"
#include "skynet_handle.h"
#include <string.h>
#include <stdio.h>
@@ -11,8 +13,8 @@ static unsigned int HARBOR = ~0;
void
skynet_harbor_send(struct remote_message *rmsg, uint32_t source, int session) {
int type = rmsg->sz >> HANDLE_REMOTE_SHIFT;
rmsg->sz &= HANDLE_MASK;
int type = rmsg->sz >> MESSAGE_TYPE_SHIFT;
rmsg->sz &= MESSAGE_TYPE_MASK;
assert(type != PTYPE_SYSTEM && type != PTYPE_HARBOR && REMOTE);
skynet_context_send(REMOTE, rmsg, sizeof(*rmsg) , source, type , session);
}