All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.acgist.snail.net.torrent.IMessageEncryptHandler Maven / Gradle / Ivy

package com.acgist.snail.net.torrent;

import java.nio.ByteBuffer;

import com.acgist.snail.net.IMessageHandler;
import com.acgist.snail.system.exception.NetException;

/**
 * 

加密消息代理

* * @author acgist * @since 1.1.1 */ public interface IMessageEncryptHandler extends IMessageHandler { /** * 消息加密发送 * * @param buffer 消息内容 * * @throws NetException 网络异常 */ default void sendEncrypt(ByteBuffer buffer) throws NetException { sendEncrypt(buffer, TIMEOUT_NONE); } /** * 消息加密发送 * * @param buffer 消息内容 * @param timeout 超时时间 * * @throws NetException 网络异常 */ void sendEncrypt(ByteBuffer buffer, int timeout) throws NetException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy