File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
-- ----------------------------------------------------------------------------
2
2
-- Ada Web Server --
3
3
-- --
4
- -- Copyright (C) 2000-2016 , AdaCore --
4
+ -- Copyright (C) 2000-2020 , AdaCore --
5
5
-- --
6
6
-- This is free software; you can redistribute it and/or modify it --
7
7
-- under terms of the GNU General Public License as published by the --
22
22
with Ada.Text_IO ;
23
23
24
24
with AWS.Config.Set ;
25
- with AWS.Server ;
25
+ with AWS.Log ;
26
+ with AWS.Server.Log ;
26
27
27
28
with WS_CB.WebSockets ;
28
29
35
36
Text_IO.Put_Line (" Kill me when you want me to stop..." );
36
37
Text_IO.Put_Line (" I will stop in 10 minutes anyway !" );
37
38
39
+ Text_IO.Put_Line
40
+ (" For the WebSocket demo, open in browser websocket-messages-test.Html" );
41
+ Text_IO.Put_Line (" firefox websocket-messages-test.html" );
42
+
38
43
AWS.Config.Set.Reuse_Address (Config, True);
39
44
AWS.Config.Set.Server_Host (Config, " 127.0.0.1" );
40
45
AWS.Config.Set.Server_Port (Config, 1234 );
48
53
Config => Config,
49
54
Callback => WS_CB.Service'Access );
50
55
56
+ AWS.Server.Log.Start_Error
57
+ (WS_CB.WS, AWS.Log.Daily, Filename_Prefix => " tlog_error" );
58
+
51
59
delay 10 * 60.0 ;
52
60
53
61
Text_IO.Put_Line (" ok, let's shutdown..." );
You can’t perform that action at this time.
0 commit comments