Cleanup in Connect
This commit is contained in:
@@ -32,8 +32,6 @@ namespace OpenRA.Network
|
|||||||
{
|
{
|
||||||
int LocalClientId { get; }
|
int LocalClientId { get; }
|
||||||
ConnectionState ConnectionState { get; }
|
ConnectionState ConnectionState { get; }
|
||||||
IPEndPoint EndPoint { get; }
|
|
||||||
string ErrorMessage { get; }
|
|
||||||
void Send(int frame, List<byte[]> orders);
|
void Send(int frame, List<byte[]> orders);
|
||||||
void SendImmediate(IEnumerable<byte[]> orders);
|
void SendImmediate(IEnumerable<byte[]> orders);
|
||||||
void SendSync(int frame, byte[] syncData);
|
void SendSync(int frame, byte[] syncData);
|
||||||
@@ -55,10 +53,6 @@ namespace OpenRA.Network
|
|||||||
|
|
||||||
public virtual ConnectionState ConnectionState => ConnectionState.PreConnecting;
|
public virtual ConnectionState ConnectionState => ConnectionState.PreConnecting;
|
||||||
|
|
||||||
public virtual IPEndPoint EndPoint => throw new NotSupportedException("An echo connection doesn't have an endpoint");
|
|
||||||
|
|
||||||
public virtual string ErrorMessage => null;
|
|
||||||
|
|
||||||
public virtual void Send(int frame, List<byte[]> orders)
|
public virtual void Send(int frame, List<byte[]> orders)
|
||||||
{
|
{
|
||||||
var ms = new MemoryStream();
|
var ms = new MemoryStream();
|
||||||
@@ -147,9 +141,9 @@ namespace OpenRA.Network
|
|||||||
bool disposed;
|
bool disposed;
|
||||||
string errorMessage;
|
string errorMessage;
|
||||||
|
|
||||||
public override IPEndPoint EndPoint => endpoint;
|
public IPEndPoint EndPoint => endpoint;
|
||||||
|
|
||||||
public override string ErrorMessage => errorMessage;
|
public string ErrorMessage => errorMessage;
|
||||||
|
|
||||||
public NetworkConnection(ConnectionTarget target)
|
public NetworkConnection(ConnectionTarget target)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user