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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
a0062f59
Commit
a0062f59
authored
Feb 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bde6097c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+1
-1
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+17
-13
wcfs/client/wcfs_watchlink.h
wcfs/client/wcfs_watchlink.h
+1
-0
No files found.
wcfs/client/wcfs.cpp
View file @
a0062f59
...
...
@@ -821,7 +821,7 @@ string WCFS::String() const {
string
_Conn
::
String
()
const
{
const
_Conn
&
wconn
=
*
this
;
return
fmt
::
sprintf
(
"%s: conn%d @%s"
,
v
(
wconn
.
_wc
),
7
/*XXX wconn._wlink->_f.fd()*/
,
v
(
wconn
.
at
));
return
fmt
::
sprintf
(
"%s: conn%d @%s"
,
v
(
wconn
.
_wc
),
wconn
.
_wlink
->
fd
()
,
v
(
wconn
.
at
));
}
_Conn
::
_Conn
()
{}
...
...
wcfs/client/wcfs_watchlink.cpp
View file @
a0062f59
...
...
@@ -31,19 +31,6 @@
// wcfs::
namespace
wcfs
{
_WatchLink
::
_WatchLink
()
{}
_WatchLink
::~
_WatchLink
()
{}
void
_WatchLink
::
decref
()
{
if
(
__decref
())
delete
this
;
}
string
_WatchLink
::
String
()
const
{
const
_WatchLink
&
wlink
=
*
this
;
return
fmt
::
sprintf
(
"%s: wlink%d"
,
v
(
wlink
.
_wc
),
wlink
.
_f
->
fd
());
}
// _openwatch opens new watch link on wcfs.
pair
<
WatchLink
,
error
>
WCFS
::
_openwatch
()
{
WCFS
*
wc
=
this
;
...
...
@@ -483,4 +470,21 @@ string rxPkt::to_string() const {
}
_WatchLink
::
_WatchLink
()
{}
_WatchLink
::~
_WatchLink
()
{}
void
_WatchLink
::
decref
()
{
if
(
__decref
())
delete
this
;
}
string
_WatchLink
::
String
()
const
{
const
_WatchLink
&
wlink
=
*
this
;
return
fmt
::
sprintf
(
"%s: wlink%d"
,
v
(
wlink
.
_wc
),
wlink
.
_f
->
fd
());
}
int
_WatchLink
::
fd
()
const
{
const
_WatchLink
&
wlink
=
*
this
;
return
wlink
.
_f
->
fd
();
}
}
// wcfs::
wcfs/client/wcfs_watchlink.h
View file @
a0062f59
...
...
@@ -111,6 +111,7 @@ public:
error
replyReq
(
context
::
Context
ctx
,
const
PinReq
*
req
,
const
string
&
reply
);
string
String
()
const
;
int
fd
()
const
;
private:
error
_serveRX
(
context
::
Context
ctx
);
...
...
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