Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public UriRoute(ServerSetting serverSetting, UriData uriData)
 {
     _serverSetting = serverSetting;
     _uriData       = uriData;
 }
 public ServerListener(ServerSetting serverSetting) : base(serverSetting)
 {
     ServerSetting = serverSetting;
 }
 public RequestGenerator(ServerSetting serverSetting)
 {
     ServerSetting = serverSetting;
 }
Exemple #5
0
 public ResponseGenerator(ServerSetting serverSetting, Request request)
 {
     ServerSetting = serverSetting;
     Request       = request;
 }
Exemple #6
0
 public HttpHandler(TcpClient tcpClient, ServerSetting serverSetting)
 {
     _tcpClient     = tcpClient;
     _serverSetting = serverSetting;
 }
 public ResponseHandler(ServerSetting serverSetting, Client client)
 {
     _serverSetting = serverSetting;
     _client        = client;
 }
Exemple #8
0
 public Server(ServerSetting settings)
 {
     ServerSetting = settings;
     Started       = false;
 }