static void Main() { ServerSetting setting = new ServerSetting { ControllerTrigger = "c", MethodTrigger = "m", DefaultController = "View", DefaultMethod = "Index", IPAddress = IPAddress.Any, RouteList = new RouteList(), Port = 5555, ServerName = "File Web Share" }; ServerListener Listener = new ServerListener(setting); Listener.Start(); while (true) { System.Threading.Thread.Sleep(1000); } }
public UriRoute(ServerSetting serverSetting, UriData uriData) { _serverSetting = serverSetting; _uriData = uriData; }
public ServerListener(ServerSetting serverSetting) : base(serverSetting) { ServerSetting = serverSetting; }
public RequestGenerator(ServerSetting serverSetting) { ServerSetting = serverSetting; }
public ResponseGenerator(ServerSetting serverSetting, Request request) { ServerSetting = serverSetting; Request = request; }
public HttpHandler(TcpClient tcpClient, ServerSetting serverSetting) { _tcpClient = tcpClient; _serverSetting = serverSetting; }
public ResponseHandler(ServerSetting serverSetting, Client client) { _serverSetting = serverSetting; _client = client; }
public Server(ServerSetting settings) { ServerSetting = settings; Started = false; }