TouchSocket
TouchSocket copied to clipboard
TouchSocket是.Net(包括 C# 、VB.Net、F#)的一个整合性的、超轻量级的网络通信框架。包含了 tcp、udp、ssl、http、websocket、rpc、jsonrpc、webapi、xmlrpc等一系列的通信模块。一键式解决 TCP 黏分包问题,udp大数...
HitSize函数直接根据输入 ***X*** 求解  
net framework4.7.2 tcpclient连接以后,online变量还是flase
The Transfer can't work with huge size files.
I am Cary,This is my project.I hope it helps you do your job better.
https://github.com/RRQM/TouchSocket/blob/f4e48dfdf87952ab91e214ca82f333c4f60488c8/src/TouchSocket/Core/Logger/FileLogger.cs#L82-L86
 
HttpService ParseHttpServer = new HttpService(); ParseHttpServer.Setup(new TouchSocketConfig()//加载配置 .SetListenIPHosts(ServerConfig.PraseServerPort) .ConfigureContainer(a => { a.AddConsoleLogger(); }) .ConfigurePlugins(a => { a.Add(); a.Add(); //default插件应该最后添加,其作用是 //1、为找不到的路由返回404 //2、处理header为Option的探视跨域请求。 a.UseDefaultHttpServicePlugin(); })); ParseHttpServer.Start();
由于网络问题,github只做同步源,所以提交issue请移步至gitee https://gitee.com/RRQM_Home/TouchSocket
参照说明文档:导入unity packetage 包 使用untiy example 中的服务端项目本地运行 tcp 及 udp 的连接都正常 但使用tcpDmtp 测试demo时,提示`Error | 这可能不是Dmtp协议数据`  
protected Func CreateExpressionInvoker(MethodInfo method) { var instance = Expression.Parameter(typeof(object), "instance"); var parameters = Expression.Parameter(typeof(object[]), "parameters"); var instanceCast = method.IsStatic ? null : Expression.Convert(instance, method.DeclaringType); var parametersCast = method.GetParameters() .Select((p, i)...