資源簡介
Netty權威指南源碼-maven版

代碼片段和文件信息
/*
?*?Copyright?2013-2018?Lilinfeng.
?*??
?*?Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
?*?you?may?not?use?this?file?except?in?compliance?with?the?License.
?*?You?may?obtain?a?copy?of?the?License?at
?*??
?*??????http://www.apache.org/licenses/LICENSE-2.0
?*??
?*?Unless?required?by?applicable?law?or?agreed?to?in?writing?software
?*?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
?*?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
?*?See?the?License?for?the?specific?language?governing?permissions?and
?*?limitations?under?the?License.
?*/
package?com.phei.netty.aio;
import?java.nio.ByteBuffer;
import?java.nio.channels.AsynchronousSocketChannel;
import?java.nio.channels.CompletionHandler;
/**
?*?@author?lilinfeng
?*?@date?2014年2月16日
?*?@version?1.0
?*/
public?class?AcceptCompletionHandler?implements
CompletionHandler?{
????@Override
????public?void?completed(AsynchronousSocketChannel?result
????AsyncTimeServerHandler?attachment)?{
attachment.asynchronousServerSocketChannel.accept(attachment?this);
ByteBuffer?buffer?=?ByteBuffer.allocate(1024);
result.read(buffer?buffer?new?ReadCompletionHandler(result));
????}
????@Override
????public?void?failed(Throwable?exc?AsyncTimeServerHandler?attachment)?{
exc.printStackTrace();
attachment.latch.countDown();
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-02-06?20:37??nettybook2\
?????文件?????????803??2017-02-06?20:37??nettybook2\.classpath
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\
?????文件???????????9??2017-02-06?20:37??nettybook2\.gitignore
?????文件?????????309??2017-02-06?20:37??nettybook2\.git\config
?????文件??????????73??2017-02-06?20:26??nettybook2\.git\desc
?????文件??????????23??2017-02-06?20:37??nettybook2\.git\HEAD
?????目錄???????????0??2017-02-06?20:26??nettybook2\.git\hooks\
?????文件?????????478??2017-02-06?20:26??nettybook2\.git\hooks\applypatch-msg.sample
?????文件?????????896??2017-02-06?20:26??nettybook2\.git\hooks\commit-msg.sample
?????文件?????????189??2017-02-06?20:26??nettybook2\.git\hooks\post-update.sample
?????文件?????????424??2017-02-06?20:26??nettybook2\.git\hooks\pre-applypatch.sample
?????文件????????1642??2017-02-06?20:26??nettybook2\.git\hooks\pre-commit.sample
?????文件????????1348??2017-02-06?20:26??nettybook2\.git\hooks\pre-push.sample
?????文件????????4951??2017-02-06?20:26??nettybook2\.git\hooks\pre-reba
?????文件????????1239??2017-02-06?20:26??nettybook2\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2017-02-06?20:26??nettybook2\.git\hooks\update.sample
?????文件???????38359??2017-02-06?20:37??nettybook2\.git\index
?????目錄???????????0??2017-02-06?20:26??nettybook2\.git\info\
?????文件?????????240??2017-02-06?20:26??nettybook2\.git\info\exclude
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\logs\
?????文件?????????203??2017-02-06?20:37??nettybook2\.git\logs\HEAD
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\logs\refs\
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\logs\refs\heads\
?????文件?????????203??2017-02-06?20:37??nettybook2\.git\logs\refs\heads\master
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\logs\refs\remotes\
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\logs\refs\remotes\origin\
?????文件?????????203??2017-02-06?20:37??nettybook2\.git\logs\refs\remotes\origin\HEAD
?????目錄???????????0??2017-02-06?20:26??nettybook2\.git\ob
?????目錄???????????0??2017-02-06?20:26??nettybook2\.git\ob
?????目錄???????????0??2017-02-06?20:37??nettybook2\.git\ob
............此處省略390個文件信息
評論
共有 條評論