encodeSetIP method

List<int> encodeSetIP(
  1. String ip
)

Implementation

List<int> encodeSetIP(String ip) {
  List<int> buffer = [0x1f, 0x1b, 0x1f, 0x91, 0x00, 0x49, 0x50];
  final List<String> splittedIp = ip.split('.');
  return buffer..addAll(splittedIp.map((e) => int.parse(e)).toList());
}