package com.jscape.inet.ssh.protocol.v2.messages;

import com.jscape.inet.ssh.protocol.messages.Message;

/**
 * @author Alex Usun
 */
public abstract class SshMsgChannelRequest<H extends Message.HandlerBase>
        extends Message<H> {

    public final int recipientChannel;
    public final boolean wantReply;

    public SshMsgChannelRequest(int recipientChannel, boolean wantReply) {
        this.recipientChannel = recipientChannel;
        this.wantReply = wantReply;
    }

    @Override
    public String toString() {
        return "SshMsgChannelRequest {"
                + "recipientChannel=" + this.recipientChannel
                + ", wantReply=" + this.wantReply
                + '}';
    }
}
