Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
5bb2accb
Commit
5bb2accb
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
323ba50c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+2
-7
No files found.
wcfs/client/wcfs_watchlink.cpp
View file @
5bb2accb
...
...
@@ -148,16 +148,12 @@ error _WatchLink::_serveRX(context::Context ctx) {
err
=
nil
;
return
E
(
err
);
}
printf
(
"C: watch : rx:
\"
%s
\"
"
,
v
(
l
));
//trace
("C: watch : rx: \"%s\"", v(l));
err
=
pkt
.
from_string
(
l
);
//printf("line -> pkt: err='%s'\n", v(err));
if
(
err
!=
nil
)
return
E
(
err
);
//printf("pkt.stream: %lu\n", pkt.stream);
//printf("pkt.datalen: %u\n", pkt.datalen);
if
(
pkt
.
stream
==
0
)
{
// control/fatal message from wcfs
log
::
Errorf
(
"C: watch : rx fatal: %s
\n
"
,
v
(
l
));
wlink
.
fatalv
.
push_back
(
pkt
.
to_string
());
...
...
@@ -239,7 +235,6 @@ error _WatchLink::replyReq(context::Context ctx, const PinReq *req, const string
_WatchLink
&
wlink
=
*
this
;
xerr
::
Contextf
E
(
"%s: replyReq .%d"
,
v
(
wlink
),
req
->
stream
);
//print('C: reply %s <- %r ...' % (req, answer))
wlink
.
_rxmu
.
lock
();
bool
ok
=
wlink
.
_accepted
.
has
(
req
->
stream
);
wlink
.
_rxmu
.
unlock
();
...
...
@@ -293,7 +288,7 @@ error _WatchLink::_write(const string &pkt) {
wlink
.
_txmu
.
unlock
();
});
//trace('C: watch : tx:
%r' % pkt)
//trace('C: watch : tx:
\"%s\"', v(pkt));
int
n
;
error
err
;
tie
(
n
,
err
)
=
wlink
.
_f
->
write
(
pkt
.
c_str
(),
pkt
.
size
());
...
...
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