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

com.acgist.snail.net.upnp.UpnpAcceptHandler Maven / Gradle / Ivy

package com.acgist.snail.net.upnp;

import java.net.InetSocketAddress;
import java.nio.ByteBuffer;

import com.acgist.snail.net.UdpAcceptHandler;
import com.acgist.snail.net.UdpMessageHandler;

/**
 * UPNP接收器
 * 
 * @author acgist
 * @since 1.0.0
 */
public final class UpnpAcceptHandler extends UdpAcceptHandler {

	private static final UpnpAcceptHandler INSTANCE = new UpnpAcceptHandler();
	
	private UpnpAcceptHandler() {
	}
	
	public static final UpnpAcceptHandler getInstance() {
		return INSTANCE;
	}

	private final UpnpMessageHandler upnpMessageHandler = new UpnpMessageHandler();
	
	@Override
	public UdpMessageHandler messageHandler(ByteBuffer buffer, InetSocketAddress socketAddress) {
		return this.upnpMessageHandler;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy