checkPort abstract method

Future<MnnPortCheckResult> checkPort({
  1. required MnnServerBindMode bindMode,
  2. required int port,
})

Performs an advisory bind probe without starting the server. It is useful for diagnostics only; callers should still handle port_in_use from startServer, because a probe and a later bind are not atomic.

Implementation

Future<MnnPortCheckResult> checkPort({
  required MnnServerBindMode bindMode,
  required int port,
});