ip 0.1.1
ip: ^0.1.1 copied to clipboard

discontinued

A package for working with the IP protocol stack (IPv4, IPv6, ICMP, TCP, UDP).

example/ip.dart

import 'package:ip/ip.dart';
import 'package:raw/raw.dart';

void printPacketInfo(List<int> bytes) {
  // Decode packet
  final reader = RawReader.withBytes(bytes);
  final packet = IpPacket.decode(reader);

  // Print some information
  print("Source: ${packet.source}");
  print("Destination: ${packet.destination}");
}
2
likes
0
pub points
73%
popularity

A package for working with the IP protocol stack (IPv4, IPv6, ICMP, TCP, UDP).

Repository (GitHub)
View/report issues

Documentation

API reference

License

LICENSE

Dependencies

meta, raw

More

Packages that depend on ip