Commit a0062f59 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bde6097c
...@@ -821,7 +821,7 @@ string WCFS::String() const { ...@@ -821,7 +821,7 @@ string WCFS::String() const {
string _Conn::String() const { string _Conn::String() const {
const _Conn& wconn = *this; 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() {} _Conn::_Conn() {}
......
...@@ -31,19 +31,6 @@ ...@@ -31,19 +31,6 @@
// wcfs:: // wcfs::
namespace 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. // _openwatch opens new watch link on wcfs.
pair<WatchLink, error> WCFS::_openwatch() { pair<WatchLink, error> WCFS::_openwatch() {
WCFS *wc = this; WCFS *wc = this;
...@@ -483,4 +470,21 @@ string rxPkt::to_string() const { ...@@ -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::
...@@ -111,6 +111,7 @@ public: ...@@ -111,6 +111,7 @@ public:
error replyReq(context::Context ctx, const PinReq *req, const string& reply); error replyReq(context::Context ctx, const PinReq *req, const string& reply);
string String() const; string String() const;
int fd() const;
private: private:
error _serveRX(context::Context ctx); error _serveRX(context::Context ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment