// Copyright 2009 The Archiveopteryx Developers <info@aox.org>

#ifndef BYTEFORWARDER_H
#define BYTEFORWARDER_H

#include "connection.h"


class ByteForwarder: public Connection
{
public:
    ByteForwarder( int, Connection *, bool );

    void react( Event );

    void read();
    void write();
    bool canRead();
    bool canWrite();

    void setSibling( ByteForwarder * );

private:
    class ByteForwarder * s;
    Connection * p;
    bool u;
    bool eof;
    char b[24576];
    uint o;
    uint l;
};

#endif
