2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2019-08-07 17:12:20 +03:00
parent b796bf9436
commit 1bf0bc32ae
80 changed files with 394 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
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)
{
}
}