- override
Transform the incoming stream
's events.
Creates a new stream.
When this stream is listened to, it will start listening on stream
,
and generate events on the new stream based on the events from stream
.
Subscriptions on the returned stream should propagate pause state
to the subscription on stream
.
Source
@override Stream<ProxyDef> bind(Stream<List<int>> stream) async* { await for (List<int> packet in stream) { var str = new String.fromCharCodes(packet); for (Match match in rgxIp.allMatches(str)) { yield new ProxyDef(match.group(1), int.parse(match.group(3))); } } }