Commit 441a66b
authored
Issue 342 | TCP/UD Socket based Table Streamer (#345)
* - Implements TCP socket streamer. Opens on port 31416.
- Added a test case which also shows how to use it.
- The output is in JSON format.
* it is a good idea to zip the data with time for server.
* Temp commit. Needs to make sure that recv socket can read the data.
* Ready for a PR.
* Added moose server.
* This is nice but I don't know what is going on behind the scene. Must implement
from the scratch.
* Using raw sockets from python.
* I can now execute script on server.
* Updated a bit more.
* This works with ghevar [skip ci]
* A working version [skip ci]
* Extra code which saves all images to pdf file.
* A working version [skip ci]
Better path handling and result streaming. Needs to have a protocol for sending
messages.
python -m moose.server run the server.
removed pyflakes reported error [skip ci]
remove default -h (help) which was in conflict with -h (--host). [skip ci]
* Pipeline is complete. Works fine.
* Fixed pylint error.
* Socket works on OSX as well.
* Added logger. Need to test from different network.
* block socket till specified data is received.
Removed old dreprecated scripts. They are part of parent moose repo and
no longer required here.
Some more corner cases are handled.
Don't use fullpath.
Autosetup SocketStreamer when environment variable MOOSE_TCP_STREAMER_ADDRESS is
set to e.g. localhost:31416 .
Try till all data is recieved.
* Squashed commit of the following:
commit 206baccabb1d7c7b5b90accf9961376febcaab47
Author: Dilawar Singh <[email protected]>
Date: Tue Feb 5 10:11:27 2019 +0530
removed the background client. Accept only 1 client.
commit b71dbb3d3f312ca1eec4fb456e8ea758123ad505
Author: Dilawar Singh <[email protected]>
Date: Mon Feb 4 15:55:44 2019 +0530
changed the implementation. Now process function does nothing. We launch a
thread in the background which monitor connections and stream the data. If no
environment variable is set then no data is streamed and tables are safe.
Tables are flushed when data is streamed. Need to change this behaviour.
* Socket streamer are alos available.
* added unix domain socket as well.
* Renamed some tests.
* On OSX, I can't send all the data [skip ci].
* Needs some more work [skip ci].
* Squashed commit of the following:
commit ff2b989659fdeb34ff5095177e17325286bd6746
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 21:26:03 2019 +0530
Test passes on linux.
commit 8ca89dc
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 19:27:05 2019 +0530
Latency in TCP socket is bad.
commit c3e15d8
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 18:56:36 2019 +0530
Fixed both tests. Now test on OSX.
commit c731328
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 18:52:08 2019 +0530
Time is handled by table.
commit 701ea55
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 16:26:35 2019 +0530
Fixed frame size helped.
commit b168681
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 15:59:38 2019 +0530
Test on osx [skip ci].
* Squashed commit of the following:
commit c3e15d8
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 18:56:36 2019 +0530
Fixed both tests. Now test on OSX.
commit c731328
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 18:52:08 2019 +0530
Time is handled by table.
commit 701ea55
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 16:26:35 2019 +0530
Fixed frame size helped.
commit b168681
Author: Dilawar Singh <[email protected]>
Date: Wed Feb 6 15:59:38 2019 +0530
Test on osx [skip ci].
* TCP socket latency is high for small simulations.
* TCP socket works with latency but OK to use.
* Environment variable is working file. Time to merge.1 parent c67f8c0 commit 441a66b
File tree
51 files changed
+4306
-2989
lines changed- basecode
- biophysics
- builtins
- ksolve
- pymoose
- python/moose
- scheduling
- scripts
- shell
- tests/python
- utility
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+4306
-2989
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
| 531 | + | |
| 532 | + | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
0 commit comments