super_ip 0.1.0
super_ip: ^0.1.0 copied to clipboard
A modern Dart package for working with the IP protocol stack (IPv4, IPv6, ICMP, TCP, UDP), updated for Dart 3.8 with improved type safety and null-safety support.
Super IP #
A modern Dart package for working with the IP protocol stack, including:
- IPv4
- IPv6
- ICMP
- TCP
- UDP
Built on top of super_raw for high-performance binary encoding and decoding.
🚀 Features #
✅ Fully null-safe
✅ Compatible with Dart 3.8+
✅ Implements low-level IP/TCP/UDP parsing and utilities
✅ Provides a clean, type-safe API for raw network data
📦 Installation #
Add to your pubspec.yaml:
dependencies:
super_ip: ^0.1.0
Then run:
dart pub get
🧠 Example #
import 'package:super_ip/super_ip.dart';
void main() {
final ipv4 = IPv4Packet.fromBytes([
0x45, 0x00, 0x00, 0x54, // header + payload length
// ...
]);
print('Version: ${ipv4.version}');
print('Source: ${ipv4.source}');
print('Destination: ${ipv4.destination}');
}
🧩 Dependencies #
🛠 Development #
Run tests:
dart test
Run analysis:
dart analyze
📄 License #
MIT © 2025 dab246