2012-04-29 17:53:50 +09:00
|
|
|
package io.netty.channel;
|
|
|
|
|
|
|
|
import java.net.SocketAddress;
|
|
|
|
|
|
|
|
public interface ChannelOutboundHandler<T> extends ChannelHandler {
|
2012-05-01 17:19:41 +09:00
|
|
|
ChannelBufferHolder<T> newOutboundBuffer(ChannelOutboundHandlerContext<T> ctx) throws Exception;
|
|
|
|
|
2012-04-29 17:53:50 +09:00
|
|
|
void bind(ChannelOutboundHandlerContext<T> ctx, SocketAddress localAddress, ChannelFuture future) throws Exception;
|
|
|
|
void connect(ChannelOutboundHandlerContext<T> ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelFuture future) throws Exception;
|
|
|
|
void disconnect(ChannelOutboundHandlerContext<T> ctx, ChannelFuture future) throws Exception;
|
|
|
|
void close(ChannelOutboundHandlerContext<T> ctx, ChannelFuture future) throws Exception;
|
|
|
|
void deregister(ChannelOutboundHandlerContext<T> ctx, ChannelFuture future) throws Exception;
|
2012-05-01 17:19:41 +09:00
|
|
|
void flush(ChannelOutboundHandlerContext<T> ctx, ChannelFuture future) throws Exception;
|
2012-04-29 17:53:50 +09:00
|
|
|
}
|