• 大小: 6.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-22
  • 语言: Java
  • 标签: Netty  Android  

资源简介

  adroid netty自己写的简单例子

资源截图

代码片段和文件信息

package com.netty.test.txn;

import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.DelimiterbasedframeDecoder;
import io.netty.handler.codec.Delimiters;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
import io.netty.util.CharsetUtil;

public class MyHelloServer {

public void bind(int port) throws InterruptedException {
EventLoopGroup boss = new NioEventLoopGroup();
EventLoopGroup work = new NioEventLoopGroup();

try {
ServerBootstrap b = new ServerBoot

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-05 13:29  adroid+netty简单例子\
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\
     文件         475  2016-02-05 10:14  adroid+netty简单例子\Day3\.classpath
     文件         840  2016-02-05 10:14  adroid+netty简单例子\Day3\.project
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\.settings\
     文件         670  2016-02-05 10:14  adroid+netty简单例子\Day3\.settings\org.eclipse.jdt.core.prefs
     文件         921  2016-02-05 11:12  adroid+netty简单例子\Day3\AndroidManifest.xml
     目录           0  2016-02-05 13:30  adroid+netty简单例子\Day3\assets\
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\bin\
     文件         921  2016-02-05 11:12  adroid+netty简单例子\Day3\bin\AndroidManifest.xml
     文件     1188591  2016-02-05 13:21  adroid+netty简单例子\Day3\bin\Day3.apk
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\bin\classes\
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\bin\classes\com\
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\bin\classes\com\txn\
     目录           0  2016-02-05 13:29  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\
     文件         333  2016-02-05 10:25  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\BuildConfig.class
     文件        1054  2016-02-05 13:27  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\ClientActivity$1.class
     文件         783  2016-02-05 13:27  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\ClientActivity$2.class
     文件        2751  2016-02-05 13:27  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\ClientActivity$3.class
     文件        1062  2016-02-05 13:27  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\ClientActivity$4.class
     文件        3261  2016-02-05 13:27  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\ClientActivity.class
     文件        2120  2016-02-05 10:30  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\MyClientHandler.class
     文件        2958  2016-02-05 10:44  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\MyClientInitializer.class
     文件         322  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$attr.class
     文件         443  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$dimen.class
     文件         389  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$drawable.class
     文件         416  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$id.class
     文件         385  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$layout.class
     文件         370  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$menu.class
     文件         454  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$string.class
     文件         413  2016-02-05 11:16  adroid+netty简单例子\Day3\bin\classes\com\txn\day3\R$style.class
............此处省略62个文件信息

评论

共有 条评论