2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-05-06 12:02:57 +00:00
esiur-dart/bin/Net/Sockets/IPEndPoint.dart
2019-08-07 05:12:10 +03:00

25 lines
351 B
Dart

class IPEndPoint
{
List<int> ip;
int port;
String getIP()
{
return ip.join(".");
//return "${(ip >> 24) & 0xFF}.${(ip >> 16) & 0xFF}.${(ip >> 8) & 0xFF}.${ip & 0xFF}";
}
String get address => getIP();
@override
String toString() {
return "${getIP()}:${port}";
}
IPEndPoint(this.ip, this.port)
{
}
}