Class TcpServers


  • public final class TcpServers
    extends java.lang.Object
    aio server socket
    Author:
    wudi
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void aio​(int port, Callback<byte[],​byte[]> call)
      aio绑定监听端口
      static void bio​(int port, Callback<byte[],​byte[]> call)
      bio绑定监听端口
      static void nio​(int port, Callback<byte[],​byte[]> call)
      nio绑定监听端口
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • aio

        public static void aio​(int port,
                               Callback<byte[],​byte[]> call)
        aio绑定监听端口
        Parameters:
        port - 端口
        call - 回调
      • nio

        public static void nio​(int port,
                               Callback<byte[],​byte[]> call)
        nio绑定监听端口
        Parameters:
        port - 端口
        call - 回调
      • bio

        public static void bio​(int port,
                               Callback<byte[],​byte[]> call)
        bio绑定监听端口
        Parameters:
        port - 端口
        call - 回调