Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a5d1ae480e
  1. 2
      crypto777/nanosrc/aio/usock_posix.c
  2. 1
      crypto777/nanosrc/nn_config.h

2
crypto777/nanosrc/aio/usock_posix.c

@ -1286,7 +1286,7 @@ static int nn_usock_recv_raw(struct nn_usock *self, void *buf, size_t *len)
#if NN_USE_MYMSG
nbytes = myrecvmsg(self->s,&hdr,0,(int32_t)iov.iov_len);
//printf("got nbytes.%d from recvmsg errno.%d\n",(int32_t)nbytes,errno);
printf("got nbytes.%d from recvmsg errno.%d\n",(int32_t)nbytes,errno);
#else
nbytes = recvmsg (self->s, &hdr, 0);
#endif

1
crypto777/nanosrc/nn_config.h

@ -64,6 +64,7 @@ void PNACL_message(const char* format, ...);
performance optimal make sure that this value is larger than network MTU. */
#define NN_USOCK_BATCH_SIZE (2048)
//#define NN_USOCK_BATCH_SIZE (_NN_USOCK_BATCH_SIZE - 5 - 256 - 16) // adjust for veclen/clen + sizeof(ctrl)
#define NN_USE_MYMSG 1
#if defined __PNACL || defined __APPLE__
#define NN_USE_MYMSG 1

Loading…
Cancel
Save