Ultron.Proxy/Ultron.Proxy.Server/ServerModels.cs

31 lines
654 B
C#

using System;
using System.Collections.Generic;
using System.Net.Sockets;
namespace Ultron.Proxy
{
public struct ClientIDAppID
{
public int ClientID;
public int AppID;
}
public class TcpTunnel
{
public TcpClient ConsumerClient;
public TcpClient ClientServerClient;
}
public class AppModel
{
public ClientIDAppID ClientIdAppId;
public List<TcpTunnel> Tunnels; //正在使用的隧道
public List<TcpClient> ReverseClients; //反向连接的socket
}
public class AppChangedEventArgs : EventArgs
{
public ClientIDAppID App;
}
}