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
63acc55c
Commit
63acc55c
authored
Oct 25, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
889ea1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+9
-11
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
63acc55c
...
...
@@ -65,6 +65,15 @@ struct IContext {
virtual
error
err
()
=
0
;
};
// XXX wrap T* as IContext
template
<
typename
T
>
class
Context
{
T
*
obj
;
public:
chan
<
structZ
>
done
()
{
return
obj
->
done
();
}
error
err
()
{
return
obj
->
err
();
}
};
struct
Conn
;
struct
_File
;
struct
_Mapping
;
...
...
@@ -394,13 +403,6 @@ error WatchLink::_send(StreamID stream, const string &msg) {
WatchLink
*
wlink
=
this
;
if
(
msg
.
find
(
'\n'
)
!=
string
::
npos
)
panic
(
"msg has
\\
n"
);
// XXX Pkt is not needed here
#if 0
Pkt pkt;
pkt.stream = stream;
pkt.rawdata = // XXX copy msg XXX + "%d <stream> ...\n" ?
return wlink->_write(&pkt)
#endif
string
pkt
=
fmt
::
sprintf
(
"%lu %s
\n
"
,
stream
,
msg
.
c_str
());
return
wlink
->
_write
(
pkt
);
}
...
...
@@ -419,10 +421,6 @@ error WatchLink::_write(const string &pkt) {
error
err
;
tie
(
n
,
err
)
=
wlink
->
_f
.
write
(
pkt
.
c_str
(),
pkt
.
size
());
return
err
;
#if 0
wlink->_wtx.write(pkt);
wlink->_wtx.flush();
#endif
}
// sendReq sends client -> server request and returns server reply.
...
...
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