mirror of https://github.com/quasar/Quasar.git
39 lines
972 B
C#
39 lines
972 B
C#
|
using ProtoBuf;
|
|||
|
using xClient.Core.Packets;
|
|||
|
|
|||
|
namespace xClient.Core.ReverseProxy.Packets
|
|||
|
{
|
|||
|
[ProtoContract]
|
|||
|
public class ReverseProxyConnectResponse : IPacket
|
|||
|
{
|
|||
|
[ProtoMember(1)]
|
|||
|
public int ConnectionId { get; set; }
|
|||
|
|
|||
|
[ProtoMember(2)]
|
|||
|
public bool IsConnected { get; set; }
|
|||
|
|
|||
|
[ProtoMember(3)]
|
|||
|
public long LocalEndPoint { get; set; }
|
|||
|
|
|||
|
[ProtoMember(4)]
|
|||
|
public int LocalPort { get; set; }
|
|||
|
|
|||
|
public ReverseProxyConnectResponse()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public ReverseProxyConnectResponse(int connectionId, bool isConnected, long localEndPoint, int localPort)
|
|||
|
{
|
|||
|
this.ConnectionId = connectionId;
|
|||
|
this.IsConnected = isConnected;
|
|||
|
this.LocalEndPoint = localEndPoint;
|
|||
|
this.LocalPort = localPort;
|
|||
|
}
|
|||
|
|
|||
|
public void Execute(Client client)
|
|||
|
{
|
|||
|
client.Send<ReverseProxyConnectResponse>(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|