dfx 1.0.0-alpha

A FIX protocol implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
#![allow(dead_code)]
#![allow(unused)]

use dfx_testing::runner;
mod common;
use common::TestApplication;

use paste::paste;
use rusty_fork::rusty_fork_test;

fn cfg_from_version(version: &str) -> &str {
    match version {
        "fix40" => include_str!("./cfg/at_40.cfg"),
        "fix41" => include_str!("cfg/at_41.cfg"),
        "fix42" => include_str!("cfg/at_42.cfg"),
        "fix43" => include_str!("cfg/at_43.cfg"),
        "fix44" => include_str!("cfg/at_44.cfg"),
        "fix44noreset" => include_str!("cfg/at_44_noreset.cfg"),
        "fix50" => include_str!("cfg/at_50.cfg"),
        "fix50sp1" => include_str!("cfg/at_50_sp1.cfg"),
        "fix50sp2" => include_str!("cfg/at_50_sp2.cfg"),
        "fix50sp2" => include_str!("cfg/at_50_sp2.cfg"),
        "misc" => include_str!("cfg/at_42_misc.cfg"),
        "future" => include_str!("cfg/at_42.cfg"),
        v => panic!("cfg from version {v}"),
    }
}

fn path_from_version(version: &str) -> &str {
    match version {
        "fix40" => "tests/definitions/server-ext/fix40/",
        "fix41" => "tests/definitions/server-ext/fix41/",
        "fix42" => "tests/definitions/server-ext/fix42/",
        "fix43" => "tests/definitions/server-ext/fix43/",
        "fix44" => "tests/definitions/server-ext/fix44/",
        "fix44noreset" => "tests/definitions/server-ext/fix44noreset/",
        "fix50" => "tests/definitions/server-ext/fix50/",
        "fix50sp1" => "tests/definitions/server-ext/fix50sp1/",
        "fix50sp2" => "tests/definitions/server-ext/fix50sp2/",
        "misc" => "tests/definitions/server-ext/misc/",
        "future" => "tests/definitions/server-ext/future/",
        v => panic!("path from version {v}"),
    }
}

macro_rules! imports {
    () => {
        use std::{
            net::SocketAddr,
            time::{Duration, Instant}, path::Path, io::{BufReader, BufRead}, fs::File, borrow::BorrowMut, env,
        };

        use dfx::{
            connection::SocketAcceptor,
            session::{Session, SessionSettings},
            message_store::MemoryStoreFactory,
            data_dictionary_provider::DefaultDataDictionaryProvider,
            logging::PrintlnLogFactory,
            message::DefaultMessageFactory,
        };
        use super::*;
    };
}

macro_rules! acceptor {
    ($cfg:ident -> $func:expr) => {
        paste! {
            rusty_fork_test!{
                #[test]
                fn [<test_ $func:snake>]() {
                    let app = TestApplication::new();
                    let cfg = cfg_from_version(stringify!($cfg));
                    let session_settings = SessionSettings::from_string(cfg).unwrap();
                    let mut acceptor = SocketAcceptor::new(
                        &session_settings,
                        app,
                        MemoryStoreFactory::new(),
                        // DefaultStoreFactory::new(&session_settings),
                        DefaultDataDictionaryProvider::new(),
                        PrintlnLogFactory::new(),
                        DefaultMessageFactory::new(),
                    );

                    println!("{:?}", std::env::current_dir());
                    let path = path_from_version(stringify!($cfg));
                    let steps = runner::steps(format!("{path}{}.def", $func).as_str());
                    acceptor.start();

                    while acceptor.endpoints().len() == 0 {
                        std::thread::sleep(Duration::from_millis(10));
                    }

                    let endpoint = acceptor.endpoints()[0];

                    let runner_thread = runner::create_thread(steps, endpoint.port().into(), path);
                    let start = Instant::now();
                    while !runner_thread.is_finished() {
                        if Instant::now() - start > Duration::from_secs(120) {
                            println!("ERROR: Timeout: {runner_thread:?}");
                            break;
                        }
                        std::thread::sleep(Duration::from_millis(10));
                    }
                    acceptor.stop();

                    if runner_thread.is_finished() {
                        match runner_thread.join() {
                            Ok(result) => match result {
                                Ok(()) => {},
                                Err(message) => panic!("Steps failed:\n{message}\n")
                            },
                            Err(_) => eprintln!("Failed to join thread."),
                        }
                    } else {
                        eprintln!("Runner did not finish in 120s {}::{}", stringify!($cfg), $func);
                    }
                }
            }
        }
    };
}

mod fix40 {
    imports!();
    acceptor!(fix40 -> "10_MsgSeqNumEqual");
    acceptor!(fix40 -> "10_MsgSeqNumGreater");
    acceptor!(fix40 -> "10_MsgSeqNumLess");
    acceptor!(fix40 -> "11a_NewSeqNoGreater");
    acceptor!(fix40 -> "11b_NewSeqNoEqual");
    acceptor!(fix40 -> "11c_NewSeqNoLess");
    acceptor!(fix40 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix40 -> "14a_BadField");
    acceptor!(fix40 -> "14b_RequiredFieldMissing");
    acceptor!(fix40 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix40 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix40 -> "14e_IncorrectEnumValue");
    acceptor!(fix40 -> "14f_IncorrectDataFormat");
    acceptor!(fix40 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix40 -> "14h_RepeatedTag");
    acceptor!(fix40 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix40 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix40 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix40 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix40 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix40 -> "1b_DuplicateIdentity");
    acceptor!(fix40 -> "1c_InvalidSenderCompID");
    acceptor!(fix40 -> "1c_InvalidTargetCompID");
    acceptor!(fix40 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix40 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix40 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix40 -> "1e_NotLogonMessage");
    acceptor!(fix40 -> "20_SimultaneousResendRequest");
    acceptor!(fix40 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix40 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix40 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix40 -> "2d_GarbledMessage");
    acceptor!(fix40 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix40 -> "2e_PossDupNotReceived");
    acceptor!(fix40 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix40 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix40 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix40 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix40 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix40 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix40 -> "2q_MsgTypeNotValid");
    acceptor!(fix40 -> "2r_UnregisteredMsgType");
    acceptor!(fix40 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix40 -> "3b_InvalidChecksum");
    acceptor!(fix40 -> "3c_GarbledMessage");
    acceptor!(fix40 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix40 -> "4b_ReceivedTestRequest");
    acceptor!(fix40 -> "6_SendTestRequest");
    acceptor!(fix40 -> "7_ReceiveRejectMessage");
    acceptor!(fix40 -> "8_AdminAndApplicationMessages");
    acceptor!(fix40 -> "8_OnlyAdminMessages");
    acceptor!(fix40 -> "8_OnlyApplicationMessages");
    acceptor!(fix40 -> "AlreadyLoggedOn");
    acceptor!(fix40 -> "RejectResentMessage");
    acceptor!(fix40 -> "ReverseRoute");
    acceptor!(fix40 -> "ReverseRouteWithEmptyRoutingTags");
}

mod fix41 {
    imports!();
    acceptor!(fix41 -> "10_MsgSeqNumEqual");
    acceptor!(fix41 -> "10_MsgSeqNumGreater");
    acceptor!(fix41 -> "10_MsgSeqNumLess");
    acceptor!(fix41 -> "11a_NewSeqNoGreater");
    acceptor!(fix41 -> "11b_NewSeqNoEqual");
    acceptor!(fix41 -> "11c_NewSeqNoLess");
    acceptor!(fix41 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix41 -> "14a_BadField");
    acceptor!(fix41 -> "14b_RequiredFieldMissing");
    acceptor!(fix41 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix41 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix41 -> "14e_IncorrectEnumValue");
    acceptor!(fix41 -> "14f_IncorrectDataFormat");
    acceptor!(fix41 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix41 -> "14h_RepeatedTag");
    acceptor!(fix41 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix41 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix41 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix41 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix41 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix41 -> "1b_DuplicateIdentity");
    acceptor!(fix41 -> "1c_InvalidSenderCompID");
    acceptor!(fix41 -> "1c_InvalidTargetCompID");
    acceptor!(fix41 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix41 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix41 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix41 -> "1e_NotLogonMessage");
    acceptor!(fix41 -> "20_SimultaneousResendRequest");
    acceptor!(fix41 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix41 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix41 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix41 -> "2d_GarbledMessage");
    acceptor!(fix41 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix41 -> "2e_PossDupNotReceived");
    acceptor!(fix41 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix41 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix41 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix41 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix41 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix41 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix41 -> "2q_MsgTypeNotValid");
    acceptor!(fix41 -> "2r_UnregisteredMsgType");
    acceptor!(fix41 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix41 -> "3b_InvalidChecksum");
    acceptor!(fix41 -> "3c_GarbledMessage");
    acceptor!(fix41 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix41 -> "4b_ReceivedTestRequest");
    acceptor!(fix41 -> "6_SendTestRequest");
    acceptor!(fix41 -> "7_ReceiveRejectMessage");
    acceptor!(fix41 -> "8_AdminAndApplicationMessages");
    acceptor!(fix41 -> "8_OnlyAdminMessages");
    acceptor!(fix41 -> "8_OnlyApplicationMessages");
    acceptor!(fix41 -> "AlreadyLoggedOn");
    acceptor!(fix41 -> "RejectResentMessage");
    acceptor!(fix41 -> "ReverseRoute");
    acceptor!(fix41 -> "ReverseRouteWithEmptyRoutingTags");
}

mod fix42 {
    imports!();
    acceptor!(fix42 -> "10_MsgSeqNumEqual");
    acceptor!(fix42 -> "10_MsgSeqNumGreater");
    acceptor!(fix42 -> "10_MsgSeqNumLess");
    acceptor!(fix42 -> "11a_NewSeqNoGreater");
    acceptor!(fix42 -> "11b_NewSeqNoEqual");
    acceptor!(fix42 -> "11c_NewSeqNoLess");
    acceptor!(fix42 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix42 -> "14a_BadField");
    acceptor!(fix42 -> "14b_RequiredFieldMissing");
    acceptor!(fix42 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix42 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix42 -> "14e_IncorrectEnumValue");
    acceptor!(fix42 -> "14f_IncorrectDataFormat");
    acceptor!(fix42 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix42 -> "14h_RepeatedTag");
    acceptor!(fix42 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix42 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix42 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix42 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix42 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix42 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix42 -> "1b_DuplicateIdentity");
    acceptor!(fix42 -> "1c_InvalidSenderCompID");
    acceptor!(fix42 -> "1c_InvalidTargetCompID");
    acceptor!(fix42 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix42 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix42 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix42 -> "1e_NotLogonMessage");
    acceptor!(fix42 -> "20_SimultaneousResendRequest");
    acceptor!(fix42 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix42 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix42 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix42 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix42 -> "2d_GarbledMessage");
    acceptor!(fix42 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix42 -> "2e_PossDupNotReceived");
    acceptor!(fix42 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix42 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix42 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix42 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix42 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix42 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix42 -> "2q_MsgTypeNotValid");
    acceptor!(fix42 -> "2r_UnregisteredMsgType");
    acceptor!(fix42 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix42 -> "3b_InvalidChecksum");
    acceptor!(fix42 -> "3c_GarbledMessage");
    acceptor!(fix42 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix42 -> "4b_ReceivedTestRequest");
    acceptor!(fix42 -> "6_SendTestRequest");
    acceptor!(fix42 -> "7_ReceiveRejectMessage");
    acceptor!(fix42 -> "8_AdminAndApplicationMessages");
    acceptor!(fix42 -> "8_OnlyAdminMessages");
    acceptor!(fix42 -> "8_OnlyApplicationMessages");
    acceptor!(fix42 -> "AlreadyLoggedOn");
    acceptor!(fix42 -> "RejectResentMessage");
    acceptor!(fix42 -> "ReverseRoute");
    acceptor!(fix42 -> "ReverseRouteWithEmptyRoutingTags");
}

mod fix43 {
    imports!();
    acceptor!(fix43 -> "10_MsgSeqNumEqual");
    acceptor!(fix43 -> "10_MsgSeqNumGreater");
    acceptor!(fix43 -> "10_MsgSeqNumLess");
    acceptor!(fix43 -> "11a_NewSeqNoGreater");
    acceptor!(fix43 -> "11b_NewSeqNoEqual");
    acceptor!(fix43 -> "11c_NewSeqNoLess");
    acceptor!(fix43 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix43 -> "14a_BadField");
    acceptor!(fix43 -> "14b_RequiredFieldMissing");
    acceptor!(fix43 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix43 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix43 -> "14e_IncorrectEnumValue");
    acceptor!(fix43 -> "14f_IncorrectDataFormat");
    acceptor!(fix43 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix43 -> "14h_RepeatedTag");
    acceptor!(fix43 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix43 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix43 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix43 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix43 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix43 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix43 -> "1b_DuplicateIdentity");
    acceptor!(fix43 -> "1c_InvalidSenderCompID");
    acceptor!(fix43 -> "1c_InvalidTargetCompID");
    acceptor!(fix43 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix43 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix43 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix43 -> "1e_NotLogonMessage");
    acceptor!(fix43 -> "20_SimultaneousResendRequest");
    acceptor!(fix43 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix43 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix43 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix43 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix43 -> "2d_GarbledMessage");
    acceptor!(fix43 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix43 -> "2e_PossDupNotReceived");
    acceptor!(fix43 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix43 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix43 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix43 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix43 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix43 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix43 -> "2q_MsgTypeNotValid");
    acceptor!(fix43 -> "2r_UnregisteredMsgType");
    acceptor!(fix43 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix43 -> "3b_InvalidChecksum");
    acceptor!(fix43 -> "3c_GarbledMessage");
    acceptor!(fix43 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix43 -> "4b_ReceivedTestRequest");
    acceptor!(fix43 -> "6_SendTestRequest");
    acceptor!(fix43 -> "7_ReceiveRejectMessage");
    acceptor!(fix43 -> "8_AdminAndApplicationMessages");
    acceptor!(fix43 -> "8_OnlyAdminMessages");
    acceptor!(fix43 -> "8_OnlyApplicationMessages");
    acceptor!(fix43 -> "AlreadyLoggedOn");
    acceptor!(fix43 -> "RejectResentMessage");
    acceptor!(fix43 -> "ReverseRoute");
    acceptor!(fix43 -> "ReverseRouteWithEmptyRoutingTags");
}

mod fix44 {
    imports!();
    acceptor!(fix44 -> "10_MsgSeqNumEqual");
    acceptor!(fix44 -> "10_MsgSeqNumGreater");
    acceptor!(fix44 -> "10_MsgSeqNumLess");
    acceptor!(fix44 -> "11a_NewSeqNoGreater");
    acceptor!(fix44 -> "11b_NewSeqNoEqual");
    acceptor!(fix44 -> "11c_NewSeqNoLess");
    acceptor!(fix44 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix44 -> "14a_BadField");
    acceptor!(fix44 -> "14b_RequiredFieldMissing");
    acceptor!(fix44 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix44 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix44 -> "14e_IncorrectEnumValue");
    acceptor!(fix44 -> "14f_IncorrectDataFormat");
    acceptor!(fix44 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix44 -> "14h_RepeatedTag");
    acceptor!(fix44 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix44 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix44 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix44 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix44 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix44 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix44 -> "1b_DuplicateIdentity");
    acceptor!(fix44 -> "1c_InvalidSenderCompID");
    acceptor!(fix44 -> "1c_InvalidTargetCompID");
    acceptor!(fix44 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix44 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix44 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix44 -> "1e_NotLogonMessage");
    acceptor!(fix44 -> "20_SimultaneousResendRequest");
    acceptor!(fix44 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix44 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix44 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix44 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix44 -> "2d_GarbledMessage");
    acceptor!(fix44 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix44 -> "2e_PossDupNotReceived");
    acceptor!(fix44 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix44 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix44 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix44 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix44 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix44 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix44 -> "2q_MsgTypeNotValid");
    acceptor!(fix44 -> "2r_UnregisteredMsgType");
    acceptor!(fix44 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix44 -> "3b_InvalidChecksum");
    acceptor!(fix44 -> "3c_GarbledMessage");
    acceptor!(fix44 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix44 -> "4b_ReceivedTestRequest");
    acceptor!(fix44 -> "6_SendTestRequest");
    acceptor!(fix44 -> "7_ReceiveRejectMessage");
    acceptor!(fix44 -> "8_AdminAndApplicationMessages");
    acceptor!(fix44 -> "8_OnlyAdminMessages");
    acceptor!(fix44 -> "8_OnlyApplicationMessages");
    acceptor!(fix44 -> "AlreadyLoggedOn");
    acceptor!(fix44 -> "ComponentFieldRequired");
    acceptor!(fix44 -> "FieldTypeError_NestedGroup");
    acceptor!(fix44 -> "FieldTypeError_RepeatingGroup");
    acceptor!(fix44 -> "FieldTypeError_Top");
    acceptor!(fix44 -> "InternationalCharacters");
    acceptor!(fix44 -> "RejectResentMessage");
    acceptor!(fix44 -> "ResendRepeatingGroup");
    acceptor!(fix44 -> "ReverseRoute");
    acceptor!(fix44 -> "ReverseRouteWithEmptyRoutingTags");
    acceptor!(fix44 -> "SessionReset");
    acceptor!(fix44 -> "issue146_MissingGroupDelimiter");
    acceptor!(fix44noreset -> "SessionResetAfterDisconnect");
}

mod fix50 {
    imports!();
    acceptor!(fix50 -> "10_MsgSeqNumEqual");
    acceptor!(fix50 -> "10_MsgSeqNumGreater");
    acceptor!(fix50 -> "10_MsgSeqNumLess");
    acceptor!(fix50 -> "11a_NewSeqNoGreater");
    acceptor!(fix50 -> "11b_NewSeqNoEqual");
    acceptor!(fix50 -> "11c_NewSeqNoLess");
    acceptor!(fix50 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix50 -> "14a_BadField");
    acceptor!(fix50 -> "14b_RequiredFieldMissing");
    acceptor!(fix50 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix50 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix50 -> "14e_IncorrectEnumValue");
    acceptor!(fix50 -> "14f_IncorrectDataFormat");
    acceptor!(fix50 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix50 -> "14h_RepeatedTag");
    acceptor!(fix50 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix50 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix50 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix50 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix50 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix50 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix50 -> "1b_DuplicateIdentity");
    acceptor!(fix50 -> "1c_InvalidSenderCompID");
    acceptor!(fix50 -> "1c_InvalidTargetCompID");
    acceptor!(fix50 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix50 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix50 -> "1d_InvalidLogonNoDefaultApplVerID");
    acceptor!(fix50 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix50 -> "1e_NotLogonMessage");
    acceptor!(fix50 -> "20_SimultaneousResendRequest");
    acceptor!(fix50 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix50 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix50 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix50 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix50 -> "2d_GarbledMessage");
    acceptor!(fix50 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix50 -> "2e_PossDupNotReceived");
    acceptor!(fix50 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix50 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix50 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix50 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix50 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix50 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix50 -> "2q_MsgTypeNotValid");
    acceptor!(fix50 -> "2r_UnregisteredMsgType");
    acceptor!(fix50 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix50 -> "3b_InvalidChecksum");
    acceptor!(fix50 -> "3c_GarbledMessage");
    acceptor!(fix50 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix50 -> "4b_ReceivedTestRequest");
    acceptor!(fix50 -> "6_SendTestRequest");
    acceptor!(fix50 -> "7_ReceiveRejectMessage");
    acceptor!(fix50 -> "8_AdminAndApplicationMessages");
    acceptor!(fix50 -> "8_OnlyAdminMessages");
    acceptor!(fix50 -> "8_OnlyApplicationMessages");
    acceptor!(fix50 -> "AlreadyLoggedOn");
    acceptor!(fix50 -> "BeginString");
    acceptor!(fix50 -> "RejectResentMessage");
    acceptor!(fix50 -> "ReverseRoute");
    acceptor!(fix50 -> "ReverseRouteWithEmptyRoutingTags");
    acceptor!(fix50 -> "SessionReset");
}

mod fix50sp1 {
    imports!();
    acceptor!(fix50sp1 -> "10_MsgSeqNumEqual");
    acceptor!(fix50sp1 -> "10_MsgSeqNumGreater");
    acceptor!(fix50sp1 -> "10_MsgSeqNumLess");
    acceptor!(fix50sp1 -> "11a_NewSeqNoGreater");
    acceptor!(fix50sp1 -> "11b_NewSeqNoEqual");
    acceptor!(fix50sp1 -> "11c_NewSeqNoLess");
    acceptor!(fix50sp1 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix50sp1 -> "14a_BadField");
    acceptor!(fix50sp1 -> "14b_RequiredFieldMissing");
    acceptor!(fix50sp1 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix50sp1 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix50sp1 -> "14e_IncorrectEnumValue");
    acceptor!(fix50sp1 -> "14f_IncorrectDataFormat");
    acceptor!(fix50sp1 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix50sp1 -> "14h_RepeatedTag");
    acceptor!(fix50sp1 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix50sp1 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix50sp1 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix50sp1 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix50sp1 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix50sp1 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix50sp1 -> "1b_DuplicateIdentity");
    acceptor!(fix50sp1 -> "1c_InvalidSenderCompID");
    acceptor!(fix50sp1 -> "1c_InvalidTargetCompID");
    acceptor!(fix50sp1 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix50sp1 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix50sp1 -> "1d_InvalidLogonNoDefaultApplVerID");
    acceptor!(fix50sp1 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix50sp1 -> "1e_NotLogonMessage");
    acceptor!(fix50sp1 -> "20_SimultaneousResendRequest");
    acceptor!(fix50sp1 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix50sp1 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix50sp1 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix50sp1 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix50sp1 -> "2d_GarbledMessage");
    acceptor!(fix50sp1 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix50sp1 -> "2e_PossDupNotReceived");
    acceptor!(fix50sp1 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix50sp1 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix50sp1 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix50sp1 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix50sp1 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix50sp1 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix50sp1 -> "2q_MsgTypeNotValid");
    acceptor!(fix50sp1 -> "2r_UnregisteredMsgType");
    acceptor!(fix50sp1 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix50sp1 -> "3b_InvalidChecksum");
    acceptor!(fix50sp1 -> "3c_GarbledMessage");
    acceptor!(fix50sp1 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix50sp1 -> "4b_ReceivedTestRequest");
    acceptor!(fix50sp1 -> "6_SendTestRequest");
    acceptor!(fix50sp1 -> "7_ReceiveRejectMessage");
    acceptor!(fix50sp1 -> "8_AdminAndApplicationMessages");
    acceptor!(fix50sp1 -> "8_OnlyAdminMessages");
    acceptor!(fix50sp1 -> "8_OnlyApplicationMessages");
    acceptor!(fix50sp1 -> "AlreadyLoggedOn");
    acceptor!(fix50sp1 -> "RejectResentMessage");
    acceptor!(fix50sp1 -> "ReverseRoute");
    acceptor!(fix50sp1 -> "ReverseRouteWithEmptyRoutingTags");
    acceptor!(fix50sp1 -> "SessionReset");
}
mod fix50sp2 {
    imports!();
    acceptor!(fix50sp2 -> "10_MsgSeqNumEqual");
    acceptor!(fix50sp2 -> "10_MsgSeqNumGreater");
    acceptor!(fix50sp2 -> "10_MsgSeqNumLess");
    acceptor!(fix50sp2 -> "11a_NewSeqNoGreater");
    acceptor!(fix50sp2 -> "11b_NewSeqNoEqual");
    acceptor!(fix50sp2 -> "11c_NewSeqNoLess");
    acceptor!(fix50sp2 -> "13b_UnsolicitedLogoutMessage");
    acceptor!(fix50sp2 -> "14a_BadField");
    acceptor!(fix50sp2 -> "14b_RequiredFieldMissing");
    acceptor!(fix50sp2 -> "14c_TagNotDefinedForMsgType");
    acceptor!(fix50sp2 -> "14d_TagSpecifiedWithoutValue");
    acceptor!(fix50sp2 -> "14e_IncorrectEnumValue");
    acceptor!(fix50sp2 -> "14f_IncorrectDataFormat");
    acceptor!(fix50sp2 -> "14g_HeaderBodyTrailerFieldsOutOfOrder");
    acceptor!(fix50sp2 -> "14h_RepeatedTag");
    acceptor!(fix50sp2 -> "14i_RepeatingGroupCountNotEqual");
    acceptor!(fix50sp2 -> "15_HeaderAndBodyFieldsOrderedDifferently");
    acceptor!(fix50sp2 -> "19a_PossResendMessageThatHAsAlreadyBeenSent");
    acceptor!(fix50sp2 -> "19b_PossResendMessageThatHasNotBeenSent");
    acceptor!(fix50sp2 -> "1a_ValidLogonMsgSeqNumTooHigh");
    acceptor!(fix50sp2 -> "1a_ValidLogonWithCorrectMsgSeqNum");
    acceptor!(fix50sp2 -> "1b_DuplicateIdentity");
    acceptor!(fix50sp2 -> "1c_InvalidSenderCompID");
    acceptor!(fix50sp2 -> "1c_InvalidTargetCompID");
    acceptor!(fix50sp2 -> "1d_InvalidLogonBadSendingTime");
    acceptor!(fix50sp2 -> "1d_InvalidLogonLengthInvalid");
    acceptor!(fix50sp2 -> "1d_InvalidLogonNoDefaultApplVerID");
    acceptor!(fix50sp2 -> "1d_InvalidLogonWrongBeginString");
    acceptor!(fix50sp2 -> "1e_NotLogonMessage");
    acceptor!(fix50sp2 -> "20_SimultaneousResendRequest");
    acceptor!(fix50sp2 -> "21_RepeatingGroupSpecifierWithValueOfZero");
    acceptor!(fix50sp2 -> "2a_MsgSeqNumCorrect");
    acceptor!(fix50sp2 -> "2b_MsgSeqNumTooHigh");
    acceptor!(fix50sp2 -> "2c_MsgSeqNumTooLow");
    acceptor!(fix50sp2 -> "2d_GarbledMessage");
    acceptor!(fix50sp2 -> "2e_PossDupAlreadyReceived");
    acceptor!(fix50sp2 -> "2e_PossDupNotReceived");
    acceptor!(fix50sp2 -> "2f_PossDupOrigSendingTimeTooHigh");
    acceptor!(fix50sp2 -> "2g_PossDupNoOrigSendingTime");
    acceptor!(fix50sp2 -> "2i_BeginStringValueUnexpected");
    acceptor!(fix50sp2 -> "2k_CompIDDoesNotMatchProfile");
    acceptor!(fix50sp2 -> "2m_BodyLengthValueNotCorrect");
    acceptor!(fix50sp2 -> "2o_SendingTimeValueOutOfRange");
    acceptor!(fix50sp2 -> "2q_MsgTypeNotValid");
    acceptor!(fix50sp2 -> "2r_UnregisteredMsgType");
    acceptor!(fix50sp2 -> "2t_FirstThreeFieldsOutOfOrder");
    acceptor!(fix50sp2 -> "3b_InvalidChecksum");
    acceptor!(fix50sp2 -> "3c_GarbledMessage");
    acceptor!(fix50sp2 -> "4a_NoDataSentDuringHeartBtInt");
    acceptor!(fix50sp2 -> "4b_ReceivedTestRequest");
    acceptor!(fix50sp2 -> "6_SendTestRequest");
    acceptor!(fix50sp2 -> "7_ReceiveRejectMessage");
    acceptor!(fix50sp2 -> "8_AdminAndApplicationMessages");
    acceptor!(fix50sp2 -> "8_OnlyAdminMessages");
    acceptor!(fix50sp2 -> "8_OnlyApplicationMessages");
    acceptor!(fix50sp2 -> "AlreadyLoggedOn");
    acceptor!(fix50sp2 -> "RejectResentMessage");
    acceptor!(fix50sp2 -> "ReverseRoute");
    acceptor!(fix50sp2 -> "ReverseRouteWithEmptyRoutingTags");
    acceptor!(fix50sp2 -> "SessionReset");
}

#[cfg(feature="future")]
mod future {
    imports!();
    acceptor!(future -> "14j_OutOfRepeatingGroupMembers");
    acceptor!(future -> "14k_EmbeddedSOH");
}

mod misc {
    imports!();
    acceptor!(misc -> "FIX42LastMsgSeqNumProcessed");
    acceptor!(misc -> "FIX42MaxMessagesInResend");
    acceptor!(misc -> "FIX42Subs");
    acceptor!(misc -> "FIX42TestRequest");
}