Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightAggregationManager
This commit is contained in:
commit
6b16bc838c
10 files changed
+222
-25
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using TouchSocket.Core;
|
||||
@@ -16,7 +17,10 @@ namespace SunlightAggregationManager.UserClass
|
||||
public class AsyncHttpServer
|
||||
{
|
||||
public static HttpService httpservice = new HttpService();
|
||||
|
||||
public static async void Configuration(int P1)
|
||||
{
|
||||
await HttpMain(P1);
|
||||
}
|
||||
public static async Task HttpMain(int port1)
|
||||
{
|
||||
NetFwManger.AllowPort(port1, "TCP");//开放端口
|
||||
|
||||
@@ -24,7 +24,14 @@ namespace SunlightAggregationManager.UserClass
|
||||
public required string Terminal { get; set; }
|
||||
public required string Dat { get; set; }
|
||||
}
|
||||
|
||||
public static async void Configuration(int P1, int P2)
|
||||
{
|
||||
await TcpMain(P1, P2);
|
||||
}
|
||||
|
||||
public static TcpService service = new TcpService();
|
||||
|
||||
public static async Task TcpMain(int port1 ,int port2)
|
||||
{
|
||||
NetFwManger.AllowPort(port1, "TCP");//开放7790端口
|
||||
|
||||
Reference in new issue
Block a user