tesses.http/Tesses.Http.Example/Program.cs

15 lines
381 B
C#
Raw Permalink Normal View History

2022-08-22 17:30:32 +00:00
using System.Net.Sockets;
using System.Text;
using Tesses.Http;
HTTPServer server = new HTTPServer(new MainServer(),new TcpListener(System.Net.IPAddress.Any,3222));
server.FirstTime = (e)=>{
Console.WriteLine("Connection Made");
return true;
};
server.CatchExceptions=false;
server.AllowMultipleRequestsOnOneConnection=true;
await server.ListenAsync();