code: public static String channelToString(SocketAddress local1, SocketAddress remote1) {
          try {
              InetSocketAddress local = (InetSocketAddress) local1;
              InetSocketAddress remote = (InetSocketAddress) remote1;
              return toAddressString(local) + " -> " + toAddressString(remote);
          } catch (Exception e) {
              return local1 + "->" + remote1;
          }
      }
docs: 连接转字符串
  
  @param local1  本地地址
  @param remote1 远程地址
  @return 地址信息字符串