File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/github/steveice10/packetlib/tcp Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1515import io .netty .channel .epoll .EpollEventLoopGroup ;
1616import io .netty .channel .epoll .EpollServerSocketChannel ;
1717import io .netty .channel .*;
18+ import io .netty .channel .kqueue .KQueueEventLoopGroup ;
19+ import io .netty .channel .kqueue .KQueueServerSocketChannel ;
1820import io .netty .channel .nio .NioEventLoopGroup ;
1921import io .netty .channel .socket .ServerSocketChannel ;
2022import io .netty .channel .socket .nio .NioServerSocketChannel ;
@@ -55,6 +57,10 @@ public void bindImpl(boolean wait, final Runnable callback) {
5557 this .group = new EpollEventLoopGroup ();
5658 this .serverSocketChannel = EpollServerSocketChannel .class ;
5759 break ;
60+ case KQUEUE :
61+ this .group = new KQueueEventLoopGroup ();
62+ this .serverSocketChannel = KQueueServerSocketChannel .class ;
63+ break ;
5864 case NIO :
5965 this .group = new NioEventLoopGroup ();
6066 this .serverSocketChannel = NioServerSocketChannel .class ;
You can’t perform that action at this time.
0 commit comments