monotone

monotone Mtn Source Tree

Root/unix/ssh_agent_platform.hh

1// Copyright (C) 2007 Justin Patrin <papercrane@reversefold.com>
2//
3// This program is made available under the GNU GPL version 2.0 or
4// greater. See the accompanying file COPYING for details.
5//
6// This program is distributed WITHOUT ANY WARRANTY; without even the
7// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8// PURPOSE.
9
10#include <boost/shared_ptr.hpp>
11#include "../numeric_vocab.hh"
12#include "../netxx/stream.h"
13
14class ssh_agent_platform {
15private:
16 boost::shared_ptr<Netxx::Stream> stream;
17
18public:
19 bool connect();
20 bool disconnect();
21 bool connected();
22 void write_data(std::string const & data);
23 void read_data(u32 const len, std::string & out);
24};

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status