first commit
This commit is contained in:
30
Ultron.Proxy.Server/ServerModels.cs
Normal file
30
Ultron.Proxy.Server/ServerModels.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user