Fixed NETTY-148 OioDatagramChannel does not fire an channelOpen event.

This commit is contained in:
Trustin Lee 2009-03-30 06:13:38 +00:00
parent 4a27c83c04
commit 4794030eab

View File

@ -22,6 +22,8 @@
*/
package org.jboss.netty.channel.socket.oio;
import static org.jboss.netty.channel.Channels.*;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -67,6 +69,8 @@ final class OioDatagramChannel extends AbstractChannel
throw new ChannelException("Failed to open a datagram socket.", e);
}
config = new DefaultDatagramChannelConfig(socket);
fireChannelOpen(this);
}
public DatagramChannelConfig getConfig() {