Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b0c88a1b19
  1. 1
      iguana/SuperNET.c
  2. 6
      nanomsg/core/global.c

1
iguana/SuperNET.c

@ -482,6 +482,7 @@ void SuperNET_init(struct supernet_info *myinfo,uint16_t PUBport,uint16_t LBport
myinfo->PUBpoint[0] = myinfo->LBpoint[0] = 0;
myinfo->PUBport = myinfo->LBport = 0;
myinfo->PUBsock = myinfo->LBsock = -1;
OS_randombytes(myinfo->myaddr.pubkey.bytes,sizeof(myinfo->myaddr.pubkey));
strcpy(myinfo->transport,"tcp");
if ( PUBport == 0 )
PUBport = SUPERNET_PUBPORT;

6
nanomsg/core/global.c

@ -228,10 +228,9 @@ void nn_global_init (void)
nn_list_init(&SELF.socktypes);
//PostMessage("transports init\n");
// Plug in individual transports.
nn_global_add_transport(nn_ipc);
//nn_global_add_transport(nn_ipc);
nn_global_add_transport(nn_tcp);
//#ifdef NN_ENABLE_EXTRA
nn_global_add_transport(nn_inproc);
//nn_global_add_transport(nn_inproc);
//nn_global_add_transport(nn_ws);
//nn_global_add_transport(nn_tcpmux);
//PostMessage("socktypes init\n");
@ -246,7 +245,6 @@ void nn_global_init (void)
nn_global_add_socktype(nn_surveyor_socktype);
nn_global_add_socktype(nn_xrespondent_socktype);
nn_global_add_socktype(nn_xsurveyor_socktype);
//#endif
nn_global_add_socktype(nn_pub_socktype);
nn_global_add_socktype(nn_sub_socktype);
nn_global_add_socktype(nn_xpub_socktype);

Loading…
Cancel
Save