Add Connection.EndPoint property.

This commit is contained in:
Paul Chote
2021-05-23 15:01:30 +01:00
committed by reaperrr
parent 7e79e69eae
commit 7c02b4d264
3 changed files with 25 additions and 27 deletions

View File

@@ -12,6 +12,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
namespace OpenRA.Server
@@ -130,6 +131,8 @@ namespace OpenRA.Server
}
}
}
public EndPoint EndPoint => Socket.RemoteEndPoint;
}
public enum ReceiveState { Header, Data }