w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11VirtEthTap.hpp
Go to the documentation of this file.
1// $Id: Rw11VirtEthTap.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2014-2017 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-04-15 875 1.0 Initial version
8// 2014-06-09 561 0.1 First draft
9// ---------------------------------------------------------------------------
10
11
16#ifndef included_Retro_Rw11VirtEthTap
17#define included_Retro_Rw11VirtEthTap 1
18
19#include <poll.h>
20
21#include "Rw11VirtEth.hpp"
22
23namespace Retro {
24
25 class Rw11VirtEthTap : public Rw11VirtEth {
26 public:
27
28 explicit Rw11VirtEthTap(Rw11Unit* punit);
30
31 virtual bool Open(const std::string& url, RerrMsg& emsg);
32
33 virtual bool Snd(const RethBuf& ebuf, RerrMsg& emsg);
34
35 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
36 int detail=0) const;
37
38 protected:
39 int RcvPollHandler(const pollfd& pfd);
40
41 protected:
42 int fFd;
43 };
44
45} // end namespace Retro
46
47//#include "Rw11VirtEthTap.ipp"
48
49#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: RethBuf.hpp:27
FIXME_docs.
Definition: Rw11Unit.hpp:39
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
int fFd
fd for pty master side
virtual bool Snd(const RethBuf &ebuf, RerrMsg &emsg)
FIXME_docs.
~Rw11VirtEthTap()
Destructor.
int RcvPollHandler(const pollfd &pfd)
FIXME_docs.
virtual bool Open(const std::string &url, RerrMsg &emsg)
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47