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

import com.jscape.inet.ssh.protocol.v2.messages.SshMsgChannelOpen;
import com.jscape.inet.ssh.protocol.v2.messages.SshMsgChannelOpenSession;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author Alex Usun
 */
public class SshMsgChannelOpenSessionCodec
        implements SshMsgChannelOpenCodec.TypeCodec {

    @Override
    public SshMsgChannelOpen read(InputStream in, int senderChannel, long initialWindowSize, int maxPacketSize)
            throws IOException {
        return new SshMsgChannelOpenSession(senderChannel, initialWindowSize, maxPacketSize);
    }

    @Override
    public void write(SshMsgChannelOpen value, OutputStream out)
            throws IOException {
    }
}
