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

com.untzuntz.ustackserver.peer.PeerClientFactory Maven / Gradle / Ivy

There is a newer version: 2.1.115
Show newest version
package com.untzuntz.ustackserver.peer;

import static org.jboss.netty.channel.Channels.pipeline;

import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;

public class PeerClientFactory implements ChannelPipelineFactory {

	public PeerClientFactory()
	{
	}

	public ChannelPipeline getPipeline() throws Exception {
		
		
		// Create a default pipeline implementation.
		ChannelPipeline pipeline = pipeline();
		
		pipeline.addLast("decoder", new PeerDeliveryDecoder());
		pipeline.addLast("encoder", new PeerDeliveryEncoder());
		pipeline.addLast("handler", new PeerHandler());
		
		return pipeline;
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy