4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief Telnet inline non-template implementation */
26 //#include "Telnet.ih"
30 #define prefix_ inline
31 ///////////////////////////////cci.p///////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////////////
34 // senf::console::detail::BaseTelnetProtocol::OptInfo
36 prefix_ senf::console::detail::BaseTelnetProtocol::OptInfo::OptInfo()
37 : local (false), option (0u), wantState (DISABLED), optionState (NONE), enabled (false)
40 prefix_ senf::console::detail::BaseTelnetProtocol::OptInfo::OptInfo(bool l, option_type o)
41 : local (l), option (o), wantState (DISABLED), optionState (NONE), enabled (false)
44 ///////////////////////////////////////////////////////////////////////////
45 // senf::console::detail::BaseTelnetProtocol::TelnetHandler
47 prefix_ senf::console::detail::BaseTelnetProtocol::TelnetHandler::~TelnetHandler()
50 prefix_ std::string const & senf::console::detail::telnethandler::TerminalType::terminalType()
56 ///////////////////////////////////////////////////////////////////////////
57 // senf::console::detail::telnethandler::NAWS
59 prefix_ unsigned senf::console::detail::telnethandler::NAWS::width()
65 prefix_ unsigned senf::console::detail::telnethandler::NAWS::height()
71 ///////////////////////////////////////////////////////////////////////////
72 // senf::console::detail::BaseTelnetProtocol
74 prefix_ senf::console::detail::BaseTelnetProtocol::~BaseTelnetProtocol()
77 prefix_ void senf::console::detail::BaseTelnetProtocol::incrementRequestCounter()
80 timeout_.timeout(senf::scheduler::eventTime() + requestTimeout_);
83 prefix_ bool senf::console::detail::BaseTelnetProtocol::requestsPending()
85 return pendingRequests_ > 0u;
88 prefix_ void senf::console::detail::BaseTelnetProtocol::sendNOP()
94 prefix_ void senf::console::detail::BaseTelnetProtocol::sendBRK()
100 prefix_ void senf::console::detail::BaseTelnetProtocol::sendIP()
106 prefix_ void senf::console::detail::BaseTelnetProtocol::sendAO()
112 prefix_ void senf::console::detail::BaseTelnetProtocol::sendAYT()
118 prefix_ void senf::console::detail::BaseTelnetProtocol::sendEC()
124 prefix_ void senf::console::detail::BaseTelnetProtocol::sendEL()
130 prefix_ void senf::console::detail::BaseTelnetProtocol::sendGA()
136 prefix_ void senf::console::detail::BaseTelnetProtocol::requestLocalOption(option_type option,
139 request(getOption(true, option), enabled);
142 prefix_ void senf::console::detail::BaseTelnetProtocol::acceptLocalOption(option_type option,
145 getOption(true, option).wantState = OptInfo::ACCEPTED;
148 prefix_ void senf::console::detail::BaseTelnetProtocol::requestPeerOption(option_type option,
151 request(getOption(false, option), enabled);
154 prefix_ void senf::console::detail::BaseTelnetProtocol::acceptPeerOption(option_type option,
157 getOption(false, option).wantState = OptInfo::ACCEPTED;
160 prefix_ void senf::console::detail::BaseTelnetProtocol::emit(char c)
165 ///////////////////////////////cci.e///////////////////////////////////////
172 // comment-column: 40
173 // c-file-style: "senf"
174 // indent-tabs-mode: nil
175 // ispell-local-dictionary: "american"
176 // compile-command: "scons -u test"