openAgentChannel method
Implementation
Channel openAgentChannel(ChannelCallback cb,
{VoidCallback connected, StringCallback error}) {
if (debugPrint != null) debugPrint('openAgentChannel');
if (socket == null || state <= SSHTransportState.FIRST_NEWKEYS) return null;
Channel chan = channels[nextChannelId] = Channel(
localId: nextChannelId++,
windowS: initialWindowSize,
cb: cb,
error: error,
connected: connected)
..agentChannel = true;
nextChannelId++;
writeCipher(MSG_CHANNEL_OPEN(
'auth-agent@openssh.com', chan.localId, chan.windowS, maxPacketSize));
return chan;
}