public class MSEHandshakeProcessor extends Object
This class is not a part of the public API and is subject to change.
Constructor and Description |
---|
MSEHandshakeProcessor(TorrentRegistry torrentRegistry,
MessageHandler<Message> protocol,
Config config) |
Modifier and Type | Method and Description |
---|---|
Optional<MSECipher> |
negotiateIncoming(Peer peer,
ByteChannel channel,
ByteBuffer in,
ByteBuffer out) |
Optional<MSECipher> |
negotiateOutgoing(Peer peer,
ByteChannel channel,
TorrentId torrentId,
ByteBuffer in,
ByteBuffer out) |
public MSEHandshakeProcessor(TorrentRegistry torrentRegistry, MessageHandler<Message> protocol, Config config)
public Optional<MSECipher> negotiateOutgoing(Peer peer, ByteChannel channel, TorrentId torrentId, ByteBuffer in, ByteBuffer out) throws IOException
IOException
public Optional<MSECipher> negotiateIncoming(Peer peer, ByteChannel channel, ByteBuffer in, ByteBuffer out) throws IOException
IOException
Copyright © 2016–2021. All rights reserved.