extractSocketPort static method
- String message
Extracts a socket number from a stdout message from the cosimulation
process. Returns null if no socket number is found in message.
Implementation
static int? extractSocketPort(String message) {
final match = _cosimSocketRegex.firstMatch(message);
if (match != null) {
return int.parse(match.group(1)!);
}
return null;
}