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);
}