serverSocketBind 方法

Future<ServerSocket> serverSocketBind(
  1. dynamic address,
  2. int port,
  3. {int backlog = 0,
  4. bool v6Only = false,
  5. bool shared = false}
)

异步返回一个连接给定地址和端口的 ServerSocket

当此覆盖安装时,此函数覆盖了 ServerSocket.bind(...) 的行为。

实现

Future<ServerSocket> serverSocketBind(address, int port,
    {int backlog = 0, bool v6Only = false, bool shared = false}) {
  return ServerSocket._bind(address, port,
      backlog: backlog, v6Only: v6Only, shared: shared);
}