Spec-Zone.ru › Dart 2

dart:io

socketStartConnect method

Future<ConnectionTask<Socket>> socketStartConnect(
  1. dynamic host,
  2. int port,
  3. {dynamic sourceAddress,
  4. int sourcePort = 0}
)

Asynchronously returns a ConnectionTask that connects to the given host and port when successful.

When this override is installed, this functions overrides the behavior of Socket.startConnect(...).

Implementation

Future<ConnectionTask<Socket>> socketStartConnect(host, int port,
    {sourceAddress, int sourcePort = 0}) {
  return Socket._startConnect(host, port,
      sourceAddress: sourceAddress, sourcePort: sourcePort);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-io/IOOverrides/socketStartConnect.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API