fixcore-engine 0.1.6__tar.gz → 0.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fixcore_engine-0.1.6/fixcore_engine.egg-info → fixcore_engine-0.1.7}/PKG-INFO +1 -1
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/session/session.py +6 -7
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7/fixcore_engine.egg-info}/PKG-INFO +1 -1
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/pyproject.toml +1 -1
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/LICENSE +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/README.md +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/application.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/gui.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/gui_ui/app.js +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/gui_ui/fixcore_logo.svg +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/gui_ui/index.html +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/gui_ui/style.css +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/log/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/log/base.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/log/factory.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/log/file_log.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/log/screen.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/cracker.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/data_dictionary.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/exceptions.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/field.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/message/message.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/session/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/session/session_id.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/session/session_settings.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/session/state.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/store/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/store/base.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/store/factory.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/store/file_store.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/store/memory.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/transport/__init__.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/transport/acceptor.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/transport/framer.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore/transport/initiator.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore_engine.egg-info/SOURCES.txt +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore_engine.egg-info/dependency_links.txt +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore_engine.egg-info/entry_points.txt +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore_engine.egg-info/requires.txt +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/fixcore_engine.egg-info/top_level.txt +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/setup.cfg +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_cracker.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_data_dictionary.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_file_log.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_file_store.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_framer.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_integration.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_message.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_session.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_session_id.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_store.py +0 -0
- {fixcore_engine-0.1.6 → fixcore_engine-0.1.7}/tests/test_transport.py +0 -0
|
@@ -317,7 +317,6 @@ class Session:
|
|
|
317
317
|
msg.header.set(TAG_MSG_TYPE, MSG_LOGON)
|
|
318
318
|
msg.set_field(TAG_ENCRYPT_METHOD, "0")
|
|
319
319
|
msg.set_field(TAG_HEART_BT_INT, str(self._heartbt_int))
|
|
320
|
-
self._app.to_admin(msg, self._id)
|
|
321
320
|
logger.debug("[%s] _send_logon: calling _send_message", self._id)
|
|
322
321
|
await self._send_message(msg, is_admin=True)
|
|
323
322
|
self._logon_sent_at = time.monotonic()
|
|
@@ -328,7 +327,6 @@ class Session:
|
|
|
328
327
|
msg.header.set(TAG_MSG_TYPE, MSG_LOGOUT)
|
|
329
328
|
if text:
|
|
330
329
|
msg.set_field(TAG_TEXT, text)
|
|
331
|
-
self._app.to_admin(msg, self._id)
|
|
332
330
|
await self._send_message(msg, is_admin=True)
|
|
333
331
|
self._state = SessionState.LOGOUT_TIMEOUT
|
|
334
332
|
|
|
@@ -337,14 +335,12 @@ class Session:
|
|
|
337
335
|
msg.header.set(TAG_MSG_TYPE, MSG_HEARTBEAT)
|
|
338
336
|
if test_req_id:
|
|
339
337
|
msg.set_field(TAG_TEST_REQ_ID, test_req_id)
|
|
340
|
-
self._app.to_admin(msg, self._id)
|
|
341
338
|
await self._send_message(msg, is_admin=True)
|
|
342
339
|
|
|
343
340
|
async def _send_test_request(self, test_req_id: str) -> None:
|
|
344
341
|
msg = Message()
|
|
345
342
|
msg.header.set(TAG_MSG_TYPE, MSG_TEST_REQUEST)
|
|
346
343
|
msg.set_field(TAG_TEST_REQ_ID, test_req_id)
|
|
347
|
-
self._app.to_admin(msg, self._id)
|
|
348
344
|
await self._send_message(msg, is_admin=True)
|
|
349
345
|
self._test_req_id = test_req_id
|
|
350
346
|
self._test_req_sent_at = time.monotonic()
|
|
@@ -354,7 +350,6 @@ class Session:
|
|
|
354
350
|
msg.header.set(TAG_MSG_TYPE, MSG_RESEND_REQUEST)
|
|
355
351
|
msg.set_field(TAG_BEGIN_SEQ_NO, str(begin_seq))
|
|
356
352
|
msg.set_field(TAG_END_SEQ_NO, str(end_seq))
|
|
357
|
-
self._app.to_admin(msg, self._id)
|
|
358
353
|
await self._send_message(msg, is_admin=True)
|
|
359
354
|
|
|
360
355
|
async def _send_sequence_reset(self, new_seq_no: int, gap_fill: bool = False) -> None:
|
|
@@ -384,7 +379,6 @@ class Session:
|
|
|
384
379
|
msg.set_field(TAG_SESSION_REJECT_REASON, str(reason))
|
|
385
380
|
if text:
|
|
386
381
|
msg.set_field(TAG_TEXT, text)
|
|
387
|
-
self._app.to_admin(msg, self._id)
|
|
388
382
|
await self._send_message(msg, is_admin=True)
|
|
389
383
|
|
|
390
384
|
# ------------------------------------------------------------------
|
|
@@ -437,7 +431,7 @@ class Session:
|
|
|
437
431
|
# ------------------------------------------------------------------
|
|
438
432
|
|
|
439
433
|
async def _send_message(self, msg: Message, *, is_admin: bool) -> None:
|
|
440
|
-
"""Stamp header, store, log, and transmit *msg*."""
|
|
434
|
+
"""Stamp header, call app callback, store, log, and transmit *msg*."""
|
|
441
435
|
seq_num = self._store.next_sender_msg_seq_num()
|
|
442
436
|
msg.header.set(TAG_BEGIN_STRING, self._id.begin_string)
|
|
443
437
|
msg.header.set(TAG_SENDER_COMP_ID, self._id.sender_comp_id)
|
|
@@ -445,6 +439,11 @@ class Session:
|
|
|
445
439
|
msg.header.set(TAG_MSG_SEQ_NUM, str(seq_num))
|
|
446
440
|
msg.header.set(TAG_SENDING_TIME, _utc_timestamp())
|
|
447
441
|
|
|
442
|
+
if is_admin:
|
|
443
|
+
self._app.to_admin(msg, self._id)
|
|
444
|
+
else:
|
|
445
|
+
self._app.to_app(msg, self._id)
|
|
446
|
+
|
|
448
447
|
raw = msg.encode()
|
|
449
448
|
logger.debug("[%s] _send_message: seq=%s len=%d", self._id, seq_num, len(raw))
|
|
450
449
|
self._store.set(seq_num, raw)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|