jl777 7 years ago
parent
commit
fa7708468c
  1. 8
      crypto777/nanosrc/core/global.c

8
crypto777/nanosrc/core/global.c

@ -1245,11 +1245,11 @@ static int nn_global_create_ep (int s, const char *addr, int bind)
protosz = delim - addr; protosz = delim - addr;
addr += protosz + 3; addr += protosz + 3;
#ifdef NN_USE_MYMSG #ifdef NN_USE_MYMSG
if ( strncmp("inproc",proto,strlen("inproc")) != 0 && strncmp("ipc",proto,strlen("ipc")) != 0 && strncmp("tcp",proto,strlen("tcp")) != 0 ) if ( strncmp("inproc",proto,strlen("inproc")) != 0 && strncmp("ipc",proto,strlen("ipc")) != 0 && strncmp("tcp",proto,strlen("tcp") && strncmp("ws",proto,strlen("ws")) != 0 )
{ {
PNACL_msg("only ipc, inproc and tcp transport is supported\n"); PNACL_msg("only ipc, inproc, ws and tcp transport is supported\n");
printf("only ipc, inproc and tcp transport is supported\n"); printf("only ipc, inproc, ws and tcp transport is supported\n");
fprintf(stderr,"only ipc, inproc and tcp transport is supported\n"); fprintf(stderr,"only ipc, inproc, ws and tcp transport is supported\n");
exit(-1); exit(-1);
return -EPROTONOSUPPORT; return -EPROTONOSUPPORT;
} }

Loading…
Cancel
Save