com.acgist.snail.net.application.ApplicationServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snail Show documentation
Show all versions of snail Show documentation
基于Java开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。
package com.acgist.snail.net.application;
import com.acgist.snail.config.SystemConfig;
import com.acgist.snail.net.TcpServer;
/**
* 系统服务端
*
* @author acgist
*/
public final class ApplicationServer extends TcpServer {
private static final ApplicationServer INSTANCE = new ApplicationServer();
public static final ApplicationServer getInstance() {
return INSTANCE;
}
private ApplicationServer() {
super("Application Server", ApplicationMessageHandler.class);
}
@Override
public boolean listen() {
return this.listen(SystemConfig.getServicePort());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy