2023-03-04 14:52:04 +08:00
|
|
|
using System;
|
|
|
|
|
using Fiddler;
|
|
|
|
|
using System.Reflection;
|
2023-03-09 00:33:03 +08:00
|
|
|
using System.Collections.Generic;
|
2023-03-04 14:52:04 +08:00
|
|
|
|
|
|
|
|
namespace BarrageGrab.Proxy
|
|
|
|
|
{
|
|
|
|
|
internal interface ISystemProxy : IDisposable
|
|
|
|
|
{
|
|
|
|
|
event EventHandler<WsMessageEventArgs> OnWebSocketData;
|
|
|
|
|
|
2023-03-09 00:33:03 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 域名过滤器
|
|
|
|
|
/// </summary>
|
|
|
|
|
Func<string, bool> HostNameFilter { get; set; }
|
|
|
|
|
|
2023-03-04 14:52:04 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 开始监听
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class WsMessageEventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消息体
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte[] Payload { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 进程ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ProcessID { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 进程名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ProcessName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 域名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string HostName { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|