dtorkin

Untitled

May 19th, 2025 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.13 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  2. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  3. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  4. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  5. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  6. SENT;SVM_ID:0;Type:128;Num:0;LAK:0x08
  7. EVENT;SVM_ID:0;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  8. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x08
  9. SENT;SVM_ID:1;Type:128;Num:0;LAK:0x09
  10. EVENT;SVM_ID:1;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  11. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x09
  12. SENT;SVM_ID:2;Type:128;Num:0;LAK:0x0A
  13. EVENT;SVM_ID:2;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  14. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x0A
  15. SENT;SVM_ID:3;Type:128;Num:0;LAK:0x0B
  16.  
  17. dtorkin@ubuntu1:~/Desktop/practice$ nc localhost 12345
  18. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x08
  19. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x09
  20. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0A
  21. EVENT;SVM_ID:3;Type:LinkStatus;Details:NewStatus=2,AssignedLAK=0x0B
  22. SENT;SVM_ID:0;Type:128;Num:0;LAK:0x08
  23. EVENT;SVM_ID:0;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  24. EVENT;SVM_ID:0;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x08
  25. SENT;SVM_ID:1;Type:128;Num:0;LAK:0x09
  26. EVENT;SVM_ID:1;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  27. EVENT;SVM_ID:1;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x09
  28. SENT;SVM_ID:2;Type:128;Num:0;LAK:0x0A
  29. EVENT;SVM_ID:2;Type:ResponseTimeout;Details:CmdType=128,CmdNum=0
  30. EVENT;SVM_ID:2;Type:LinkStatus;Details:NewStatus=3,AssignedLAK=0x0A
  31. SENT;SVM_ID:3;Type:128;Num:0;LAK:0x0B
  32.  
  33. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
  34. [sudo] пароль для dtorkin:
  35. SVM Multi-Port Server starting...
  36. Message handlers initialized.
  37. SVM: Loading configuration...
  38. Configuration parsed successfully from 'config.ini'.
  39. Found configurations for 4 SVM instances in file.
  40. --- Effective Configuration ---
  41. interface_type = ethernet
  42. UVM Target: 192.168.189.129:8080
  43. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  44. Simulate Control Failure: No
  45. Disconnect After: -1 messages
  46. Simulate Response Timeout: No
  47. Send Warning on Confirm: No (TKS: 1)
  48. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  49. Simulate Control Failure: Yes
  50. Disconnect After: -1 messages
  51. Simulate Response Timeout: No
  52. Send Warning on Confirm: No (TKS: 1)
  53. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  54. Simulate Control Failure: No
  55. Disconnect After: -1 messages
  56. Simulate Response Timeout: Yes
  57. Send Warning on Confirm: No (TKS: 1)
  58. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  59. Simulate Control Failure: No
  60. Disconnect After: 5 messages
  61. Simulate Response Timeout: No
  62. Send Warning on Confirm: No (TKS: 1)
  63. -----------------------------
  64. SVM: Will attempt to start 4 instances based on config.
  65. DEBUG SVM MAIN - Instance 0 Settings: LAK=0x08, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  66. DEBUG SVM MAIN - Instance 1 Settings: LAK=0x09, simulate_control_failure=1, disconnect_after=-1, simulate_timeout=0, send_warning=0, tks=1
  67. DEBUG SVM MAIN - Instance 2 Settings: LAK=0x0A, simulate_control_failure=0, disconnect_after=-1, simulate_timeout=1, send_warning=0, tks=1
  68. DEBUG SVM MAIN - Instance 3 Settings: LAK=0x0B, simulate_control_failure=0, disconnect_after=5, simulate_timeout=0, send_warning=0, tks=1
  69. SVM: Loading configuration...
  70. Configuration parsed successfully from 'config.ini'.
  71. Found configurations for 4 SVM instances in file.
  72. --- Effective Configuration ---
  73. interface_type = ethernet
  74. UVM Target: 192.168.189.129:8080
  75. SVM 0: Port=8080, LAK=0x08 (Loaded: Yes)
  76. Simulate Control Failure: No
  77. Disconnect After: -1 messages
  78. Simulate Response Timeout: No
  79. Send Warning on Confirm: No (TKS: 1)
  80. SVM 1: Port=8081, LAK=0x09 (Loaded: Yes)
  81. Simulate Control Failure: Yes
  82. Disconnect After: -1 messages
  83. Simulate Response Timeout: No
  84. Send Warning on Confirm: No (TKS: 1)
  85. SVM 2: Port=8082, LAK=0x0A (Loaded: Yes)
  86. Simulate Control Failure: No
  87. Disconnect After: -1 messages
  88. Simulate Response Timeout: Yes
  89. Send Warning on Confirm: No (TKS: 1)
  90. SVM 3: Port=8083, LAK=0x0B (Loaded: Yes)
  91. Simulate Control Failure: No
  92. Disconnect After: 5 messages
  93. Simulate Response Timeout: No
  94. Send Warning on Confirm: No (TKS: 1)
  95. -----------------------------
  96. SVM: Will attempt to start 4 instances based on config.
  97. Thread-safe QueuedMessage queue created with capacity 400
  98. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  99. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  100. Ethernet: Listening on port 8080 (handle: 3)
  101. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  102. Listener (SVM 0): Waiting for connection on port 8080...
  103. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  104. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  105. SVM: Starting common threads (Timer, Sender)...
  106. SVM: All common threads started. 4 listeners active. Running...
  107. SVM Timer thread started.
  108. SVM Main: Waiting for shutdown signal...
  109. Ethernet: Listening on port 8082 (handle: 5)
  110. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 5)
  111. Listener (SVM 2): Waiting for connection on port 8082...
  112. Ethernet: Listening on port 8083 (handle: 7)
  113. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 7)
  114. Listener (SVM 3): Waiting for connection on port 8083...
  115. SVM Sender thread started (reads global outgoing queue).
  116. Ethernet: Listening on port 8081 (handle: 9)
  117. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 9)
  118. Listener (SVM 1): Waiting for connection on port 8081...
  119. Listener (SVM 0): Accepted connection from 192.168.189.128:57448 (Client FD 4)
  120. Thread-safe QueuedMessage queue created with capacity 100
  121. Listener (SVM 0): Instance activated. Worker threads started.
  122. SVM Processor thread started for instance 0.
  123. SVM Receiver thread started for instance 0 (handle: 4).
  124. Listener (SVM 1): Accepted connection from 192.168.189.128:40458 (Client FD 10)
  125. Thread-safe QueuedMessage queue created with capacity 100
  126. SVM Receiver thread started for instance 1 (handle: 10).
  127. SVM Receiver thread finished for instance 1.
  128. Listener (SVM 1): Instance activated. Worker threads started.
  129. Listener (SVM 1): Receiver thread joined.
  130. SVM Processor thread started for instance 1.
  131. Listener (SVM 2): Accepted connection from 192.168.189.128:42562 (Client FD 6)
  132. Thread-safe QueuedMessage queue created with capacity 100
  133. Listener (SVM 2): Instance activated. Worker threads started.
  134. SVM Processor thread started for instance 2.
  135. SVM Receiver thread started for instance 2 (handle: 6).
  136. Listener (SVM 3): Accepted connection from 192.168.189.128:37484 (Client FD 8)
  137. Thread-safe QueuedMessage queue created with capacity 100
  138. Listener (SVM 3): Instance activated. Worker threads started.
  139. SVM Receiver thread started for instance 3 (handle: 8).
  140. SVM Processor thread started for instance 3.
  141. Получено сообщение через Ethernet: Тип=128, Номер=0, Длина тела=2, Handle=4
  142. Processor (Inst 0): Обработка 'Инициализация канала'
  143. Параметры: LAUVM=0x1, LAK=0x08 (assigned)
  144. SVM (Inst 0): Эмуляция выключения лазера...
  145. Ответ 'Подтверждение инициализации' сформирован (LAK=0x08).
  146. Отправка сообщения через Ethernet: Тип=129, Номер=0, Длина тела=12, Общий размер=18, Handle=4
  147. receive_protocol_message: Соединение закрыто при чтении заголовка.
  148. Receiver Thread (Inst 0): Connection closed by UVM. Stopping instance.
  149. Receiver Thread (Inst 0): Marked instance as inactive.
  150. Receiver Thread (Inst 0): Shutting down incoming queue.
  151. Thread-safe QueuedMessage queue shutdown initiated.
  152. SVM Receiver thread finished for instance 0.
  153. Processor Thread (Inst 0): Incoming queue empty and shutdown. Exiting.
  154. SVM Processor thread finished for instance 0.
  155. Listener (SVM 0): Receiver thread joined.
  156. Listener (SVM 0): Processor thread joined.
  157. Listener (SVM 0): Worker threads finished. Cleaning up instance...
  158. Ethernet: Closing handle 4
  159. Thread-safe QueuedMessage queue destroyed
  160. Listener (SVM 0): Instance deactivated. Ready for new connection.
  161. Listener (SVM 0): Waiting for connection on port 8080...
  162. receive_protocol_message: Соединение закрыто при чтении заголовка.
  163. Receiver Thread (Inst 2): Connection closed by UVM. Stopping instance.
  164. Receiver Thread (Inst 2): Marked instance as inactive.
  165. Receiver Thread (Inst 2): Shutting down incoming queue.
  166. Thread-safe QueuedMessage queue shutdown initiated.
  167. SVM Receiver thread finished for instance 2.
  168. Processor Thread (Inst 2): Incoming queue empty and shutdown. Exiting.
  169. SVM Processor thread finished for instance 2.
  170. Listener (SVM 2): Receiver thread joined.
  171. Listener (SVM 2): Processor thread joined.
  172. Listener (SVM 2): Worker threads finished. Cleaning up instance...
  173. Ethernet: Closing handle 6
  174. Thread-safe QueuedMessage queue destroyed
  175. Listener (SVM 2): Instance deactivated. Ready for new connection.
  176. Listener (SVM 2): Waiting for connection on port 8082...
  177. receive_protocol_message: Соединение закрыто при чтении заголовка.
  178. Receiver Thread (Inst 3): Connection closed by UVM. Stopping instance.
  179. Receiver Thread (Inst 3): Marked instance as inactive.
  180. Receiver Thread (Inst 3): Shutting down incoming queue.
  181. Thread-safe QueuedMessage queue shutdown initiated.
  182. SVM Receiver thread finished for instance 3.
  183. Processor Thread (Inst 3): Incoming queue empty and shutdown. Exiting.
  184. SVM Processor thread finished for instance 3.
  185. Listener (SVM 3): Receiver thread joined.
  186. Listener (SVM 3): Processor thread joined.
  187. Listener (SVM 3): Worker threads finished. Cleaning up instance...
  188. Ethernet: Closing handle 8
  189. Thread-safe QueuedMessage queue destroyed
  190. Listener (SVM 3): Instance deactivated. Ready for new connection.
  191. Listener (SVM 3): Waiting for connection on port 8083...
  192.  
  193.  
Advertisement
Add Comment
Please, Sign In to add comment