Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
c45204e1
Unverified
Commit
c45204e1
authored
Sep 06, 2021
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-4586
parent
644abe9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Makefile.am
Makefile.am
+1
-1
ZMQServer.cpp
zmq_src/ZMQServer.cpp
+2
-4
No files found.
Makefile.am
View file @
c45204e1
...
@@ -71,7 +71,7 @@ bin_PROGRAMS = sgxwallet testw sgx_util
...
@@ -71,7 +71,7 @@ bin_PROGRAMS = sgxwallet testw sgx_util
COMMON_SRC
=
SGXException.cpp ExitHandler.cpp zmq_src/ZMQClient.cpp zmq_src/RspMessage.cpp zmq_src/ReqMessage.cpp
\
COMMON_SRC
=
SGXException.cpp ExitHandler.cpp zmq_src/ZMQClient.cpp zmq_src/RspMessage.cpp zmq_src/ReqMessage.cpp
\
zmq_src/ZMQMessage.cpp zmq_src/ZMQServer.cpp
\
zmq_src/ZMQMessage.cpp zmq_src/ZMQServer.cpp
ExitRequestedException.cpp
\
InvalidStateException.cpp Exception.cpp InvalidArgumentException.cpp Log.cpp TECrypto.cpp
\
InvalidStateException.cpp Exception.cpp InvalidArgumentException.cpp Log.cpp TECrypto.cpp
\
SGXWalletServer.cpp SGXRegistrationServer.cpp CSRManagerServer.cpp BLSCrypto.cpp CryptoTools.cpp
\
SGXWalletServer.cpp SGXRegistrationServer.cpp CSRManagerServer.cpp BLSCrypto.cpp CryptoTools.cpp
\
DKGCrypto.cpp ServerInit.cpp BLSPrivateKeyShareSGX.cpp LevelDB.cpp ServerDataChecker.cpp SEKManager.cpp
\
DKGCrypto.cpp ServerInit.cpp BLSPrivateKeyShareSGX.cpp LevelDB.cpp ServerDataChecker.cpp SEKManager.cpp
\
...
...
zmq_src/ZMQServer.cpp
View file @
c45204e1
...
@@ -133,12 +133,12 @@ void ZMQServer::doOneServerLoop() {
...
@@ -133,12 +133,12 @@ void ZMQServer::doOneServerLoop() {
result
[
"errorMessage"
]
=
""
;
result
[
"errorMessage"
]
=
""
;
zmq
::
message_t
identity
;
zmq
::
message_t
identity
;
zmq
::
message_t
copied_id
;
string
stringToParse
=
""
;
string
stringToParse
=
""
;
try
{
try
{
zmq_pollitem_t
items
[
1
];
zmq_pollitem_t
items
[
1
];
items
[
0
].
socket
=
*
socket
;
items
[
0
].
socket
=
*
socket
;
items
[
0
].
events
=
ZMQ_POLLIN
;
items
[
0
].
events
=
ZMQ_POLLIN
;
...
@@ -164,8 +164,6 @@ void ZMQServer::doOneServerLoop() {
...
@@ -164,8 +164,6 @@ void ZMQServer::doOneServerLoop() {
exit
(
-
12
);
exit
(
-
12
);
}
}
copied_id
.
copy
(
&
identity
);
zmq
::
message_t
reqMsg
;
zmq
::
message_t
reqMsg
;
if
(
!
socket
->
recv
(
&
reqMsg
,
0
))
{
if
(
!
socket
->
recv
(
&
reqMsg
,
0
))
{
...
@@ -215,7 +213,7 @@ void ZMQServer::doOneServerLoop() {
...
@@ -215,7 +213,7 @@ void ZMQServer::doOneServerLoop() {
CHECK_STATE
(
replyStr
.
front
()
==
'{'
);
CHECK_STATE
(
replyStr
.
front
()
==
'{'
);
CHECK_STATE
(
replyStr
.
back
()
==
'}'
);
CHECK_STATE
(
replyStr
.
back
()
==
'}'
);
if
(
!
socket
->
send
(
copied_id
,
ZMQ_SNDMORE
))
{
if
(
!
socket
->
send
(
identity
,
ZMQ_SNDMORE
))
{
if
(
isExitRequested
)
{
if
(
isExitRequested
)
{
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment