net.tomp2p.message
Class TomP2PDecoderUDP

java.lang.Object
  extended by net.tomp2p.message.TomP2PDecoderUDP
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

@ChannelHandler.Sharable
public class TomP2PDecoderUDP
extends Object
implements org.jboss.netty.channel.ChannelUpstreamHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
TomP2PDecoderUDP()
           
 
Method Summary
protected  Message decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, SocketAddress socketAddress)
           
 void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomP2PDecoderUDP

public TomP2PDecoderUDP()
Method Detail

handleUpstream

public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
                           org.jboss.netty.channel.ChannelEvent evt)
                    throws Exception
Specified by:
handleUpstream in interface org.jboss.netty.channel.ChannelUpstreamHandler
Throws:
Exception

decode

protected Message decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                         org.jboss.netty.channel.Channel channel,
                         org.jboss.netty.buffer.ChannelBuffer buffer,
                         SocketAddress socketAddress)
                  throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.