|
@ -243,7 +243,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ |
|
|
{ |
|
|
{ |
|
|
if ( (IPC_ENDPOINT= nn_socket(AF_SP,NN_PUB)) >= 0 ) |
|
|
if ( (IPC_ENDPOINT= nn_socket(AF_SP,NN_PUB)) >= 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( nn_bind(IPC_ENDPOINT,"ws://*:7781") >= 0 ) |
|
|
if ( nn_bind(IPC_ENDPOINT,"tcp://*:7781") >= 0 ) |
|
|
{ |
|
|
{ |
|
|
jaddstr(retjson,"result","success"); |
|
|
jaddstr(retjson,"result","success"); |
|
|
jaddstr(retjson,"endpoint",LP_IPC_ENDPOINT); |
|
|
jaddstr(retjson,"endpoint",LP_IPC_ENDPOINT); |
|
|