File: _http_connection_8cpp_source.html

package info (click to toggle)
quickfix 1.13.3%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 152,548 kB
  • ctags: 679,426
  • sloc: cpp: 639,331; xml: 129,200; python: 108,722; ruby: 85,152; sh: 10,492; ansic: 9,025; java: 1,827; cs: 1,145; makefile: 523; sql: 313; perl: 108
file content (820 lines) | stat: -rw-r--r-- 122,501 bytes parent folder | download
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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>QuickFIX: /home/omiller/Development/autobuild/quickfix/src/C++/HttpConnection.cpp Source File</title>
<link href="quickfix.css" rel="stylesheet" type="text/css">
<table cellspacing="0" cellpadding="0" border="0">
  <tr>
   <td>
	<img src="images/QuickFIX.jpg" align="middle" border=0>
	&nbsp;&nbsp;
	<a href="index.html">Index</a>&nbsp;
	<a href="files.html">Source Files</a>&nbsp;
	<a href="annotated.html">Annotated Class List</a>&nbsp;
	<a href="classes.html">Alphabetical Class List</a>&nbsp;
	<a href="hierarchy.html">Class Hierarchy</a>&nbsp;
	<a href="inherits.html">Graphical Class Hierarchy</a>&nbsp;
   </td>
  </tr>
</table>
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.6.1 -->
  <div class="navpath"><a class="el" href="dir_a9003438d6daff57482a26b22b6121a1.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_348ef16cf184025134029522e7f02883.html">C++</a>
  </div>
<div class="contents">
<h1>HttpConnection.cpp</h1><a href="_http_connection_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">** Copyright (c) quickfixengine.org  All rights reserved.</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** This file is part of the QuickFIX FIX Engine</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file may be distributed under the terms of the quickfixengine.org</span>
<a name="l00007"></a>00007 <span class="comment">** license as defined by quickfixengine.org and appearing in the file</span>
<a name="l00008"></a>00008 <span class="comment">** LICENSE included in the packaging of this file.</span>
<a name="l00009"></a>00009 <span class="comment">**</span>
<a name="l00010"></a>00010 <span class="comment">** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</span>
<a name="l00011"></a>00011 <span class="comment">** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00012"></a>00012 <span class="comment">**</span>
<a name="l00013"></a>00013 <span class="comment">** See http://www.quickfixengine.org/LICENSE for licensing information.</span>
<a name="l00014"></a>00014 <span class="comment">**</span>
<a name="l00015"></a>00015 <span class="comment">** Contact ask@quickfixengine.org if any conditions of this licensing are</span>
<a name="l00016"></a>00016 <span class="comment">** not clear to you.</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">****************************************************************************/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#include &quot;stdafx.h&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#else</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#include &quot;config.h&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_call_stack_8h.html">CallStack.h</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="_http_connection_8h.html">HttpConnection.h</a>&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="_http_message_8h.html">HttpMessage.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="_html_builder_8h.html">HtmlBuilder.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="_session_8h.html">Session.h</a>&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="_utility_8h.html">Utility.h</a>&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">using namespace </span>HTML;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">namespace </span>FIX
<a name="l00036"></a>00036 {
<a name="l00037"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a1966cd76d6f0bc526d50a7e90dcdeebc">00037</a> <a class="code" href="class_f_i_x_1_1_http_connection.html#a1966cd76d6f0bc526d50a7e90dcdeebc">HttpConnection::HttpConnection</a>( <span class="keywordtype">int</span> s )
<a name="l00038"></a>00038 : m_socket( s )
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040   FD_ZERO( &amp;<a class="code" href="class_f_i_x_1_1_http_connection.html#a8ba818997fcc11cb4644ce3bf8348369">m_fds</a> );
<a name="l00041"></a>00041   FD_SET( <a class="code" href="class_f_i_x_1_1_http_connection.html#adba42f243acc329fcdc960b2fe0d127e">m_socket</a>, &amp;<a class="code" href="class_f_i_x_1_1_http_connection.html#a8ba818997fcc11cb4644ce3bf8348369">m_fds</a> );
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043 
<a name="l00044"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#ab4ad2f36c1a049579136d086f023b50b">00044</a> <span class="keywordtype">bool</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#ab4ad2f36c1a049579136d086f023b50b">HttpConnection::send</a>( <span class="keyword">const</span> std::string&amp; msg )
<a name="l00045"></a>00045 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#ab4ad2f36c1a049579136d086f023b50b">HttpConnection::send</a>)
<a name="l00046"></a>00046   <span class="keywordflow">return</span> <a class="code" href="namespace_f_i_x.html#a3be0bc530fc5c2f814eeba421e168d90">socket_send</a>( <a class="code" href="class_f_i_x_1_1_http_connection.html#adba42f243acc329fcdc960b2fe0d127e">m_socket</a>, msg.c_str(), msg.length() ) &gt;= 0;
<a name="l00047"></a>00047   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">00050</a> <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">HttpConnection::disconnect</a>( <span class="keywordtype">int</span> error )
<a name="l00051"></a>00051 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">HttpConnection::disconnect</a>)
<a name="l00052"></a>00052   
<a name="l00053"></a>00053   <span class="keywordflow">if</span>( error &gt; 0 )
<a name="l00054"></a>00054     <a class="code" href="class_f_i_x_1_1_http_connection.html#ab4ad2f36c1a049579136d086f023b50b">send</a>( <a class="code" href="class_f_i_x_1_1_http_message.html#a8f5035fc4ec1e49e071dc31ee7cb4486">HttpMessage::createResponse</a>(error) );
<a name="l00055"></a>00055 
<a name="l00056"></a>00056   <a class="code" href="namespace_f_i_x.html#a66eef56b73ea388907711d521c145cf2">socket_close</a>( <a class="code" href="class_f_i_x_1_1_http_connection.html#adba42f243acc329fcdc960b2fe0d127e">m_socket</a> );
<a name="l00057"></a>00057 
<a name="l00058"></a>00058   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#ae206b3bf51ad671f42178a7e067a692c">00061</a> <span class="keywordtype">bool</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#ae206b3bf51ad671f42178a7e067a692c">HttpConnection::read</a>()
<a name="l00062"></a>00062 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#ae206b3bf51ad671f42178a7e067a692c">HttpConnection::read</a>)
<a name="l00063"></a>00063 
<a name="l00064"></a>00064   <span class="keyword">struct </span>timeval timeout = { 2, 0 };
<a name="l00065"></a>00065   fd_set readset = <a class="code" href="class_f_i_x_1_1_http_connection.html#a8ba818997fcc11cb4644ce3bf8348369">m_fds</a>;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067   <span class="keywordflow">try</span>
<a name="l00068"></a>00068   {
<a name="l00069"></a>00069     <span class="comment">// Wait for input (1 second timeout)</span>
<a name="l00070"></a>00070     <span class="keywordtype">int</span> result = select( 1 + <a class="code" href="class_f_i_x_1_1_http_connection.html#adba42f243acc329fcdc960b2fe0d127e">m_socket</a>, &amp;readset, 0, 0, &amp;timeout );
<a name="l00071"></a>00071 
<a name="l00072"></a>00072     <span class="keywordflow">if</span>( result &gt; 0 ) <span class="comment">// Something to read</span>
<a name="l00073"></a>00073     {
<a name="l00074"></a>00074       <span class="comment">// We can read without blocking</span>
<a name="l00075"></a>00075       <span class="keywordtype">int</span> size = recv( <a class="code" href="class_f_i_x_1_1_http_connection.html#adba42f243acc329fcdc960b2fe0d127e">m_socket</a>, <a class="code" href="class_f_i_x_1_1_http_connection.html#a89d295309d3796bc38c75279bb594f62">m_buffer</a>, <span class="keyword">sizeof</span>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a89d295309d3796bc38c75279bb594f62">m_buffer</a>), 0 );
<a name="l00076"></a>00076       <span class="keywordflow">if</span> ( size &lt;= 0 ) { <span class="keywordflow">throw</span> <a class="code" href="struct_f_i_x_1_1_socket_recv_failed.html" title="Socket recv operation failed.">SocketRecvFailed</a>( size ); }
<a name="l00077"></a>00077       <a class="code" href="class_f_i_x_1_1_http_connection.html#ad24e0d237efc430bd094d67cb2250d20">m_parser</a>.<a class="code" href="class_f_i_x_1_1_http_parser.html#a2c24c40d97b4a4ab4fb511f8d58f90d7">addToStream</a>( <a class="code" href="class_f_i_x_1_1_http_connection.html#a89d295309d3796bc38c75279bb594f62">m_buffer</a>, size );
<a name="l00078"></a>00078     }
<a name="l00079"></a>00079     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( result == 0 ) <span class="comment">// Timeout</span>
<a name="l00080"></a>00080     {
<a name="l00081"></a>00081       <a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">disconnect</a>( 408 );
<a name="l00082"></a>00082       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00083"></a>00083     }
<a name="l00084"></a>00084     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( result &lt; 0 ) <span class="comment">// Error</span>
<a name="l00085"></a>00085     {
<a name="l00086"></a>00086       <span class="keywordflow">throw</span> <a class="code" href="struct_f_i_x_1_1_socket_recv_failed.html" title="Socket recv operation failed.">SocketRecvFailed</a>( result );
<a name="l00087"></a>00087     }
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <a class="code" href="class_f_i_x_1_1_http_connection.html#a37005f9b62939df38b25d8b3d5570e4b">processStream</a>();
<a name="l00090"></a>00090     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00091"></a>00091   }
<a name="l00092"></a>00092   <span class="keywordflow">catch</span> ( <a class="code" href="struct_f_i_x_1_1_socket_recv_failed.html" title="Socket recv operation failed.">SocketRecvFailed</a>&amp; )
<a name="l00093"></a>00093   {
<a name="l00094"></a>00094     <a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">disconnect</a>();
<a name="l00095"></a>00095     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00096"></a>00096   }
<a name="l00097"></a>00097 
<a name="l00098"></a>00098   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00099"></a>00099 }
<a name="l00100"></a>00100 
<a name="l00101"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a8e9b1b73faab15ebcc44ae388ac43549">00101</a> <span class="keywordtype">bool</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a8e9b1b73faab15ebcc44ae388ac43549">HttpConnection::readMessage</a>( std::string&amp; msg )
<a name="l00102"></a>00102 <span class="keywordflow">throw</span>( <a class="code" href="struct_f_i_x_1_1_socket_recv_failed.html" title="Socket recv operation failed.">SocketRecvFailed</a> )
<a name="l00103"></a>00103 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a8e9b1b73faab15ebcc44ae388ac43549">HttpConnection::readMessage</a>)
<a name="l00104"></a>00104 
<a name="l00105"></a>00105   <span class="keyword">try</span>
<a name="l00106"></a>00106   {
<a name="l00107"></a>00107     <span class="keywordflow">return</span> m_parser.readHttpMessage( msg );
<a name="l00108"></a>00108   }
<a name="l00109"></a>00109   <span class="keywordflow">catch</span> ( <a class="code" href="struct_f_i_x_1_1_message_parse_error.html" title="Unable to parse message.">MessageParseError</a>&amp; ) 
<a name="l00110"></a>00110   { 
<a name="l00111"></a>00111     disconnect( 400 );
<a name="l00112"></a>00112   }
<a name="l00113"></a>00113   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00114"></a>00114 
<a name="l00115"></a>00115   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00116"></a>00116 }
<a name="l00117"></a>00117 
<a name="l00118"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a37005f9b62939df38b25d8b3d5570e4b">00118</a> <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a37005f9b62939df38b25d8b3d5570e4b">HttpConnection::processStream</a>()
<a name="l00119"></a>00119 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a37005f9b62939df38b25d8b3d5570e4b">HttpConnection::processStream</a>)
<a name="l00120"></a>00120 
<a name="l00121"></a>00121   std::string msg;
<a name="l00122"></a>00122   <span class="keywordflow">try</span>
<a name="l00123"></a>00123   {
<a name="l00124"></a>00124     <span class="keywordflow">if</span>( !<a class="code" href="class_f_i_x_1_1_http_connection.html#a8e9b1b73faab15ebcc44ae388ac43549">readMessage</a>(msg) )
<a name="l00125"></a>00125       <span class="keywordflow">return</span>;
<a name="l00126"></a>00126     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> request( msg );
<a name="l00127"></a>00127     <a class="code" href="class_f_i_x_1_1_http_connection.html#a69d453756ecb2f9edbd5043e74081dcf">processRequest</a>( request );
<a name="l00128"></a>00128   }
<a name="l00129"></a>00129   <span class="keywordflow">catch</span>( <a class="code" href="struct_f_i_x_1_1_invalid_message.html" title="Not a recognizable message.">InvalidMessage</a>&amp; ) 
<a name="l00130"></a>00130   {
<a name="l00131"></a>00131     <a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">disconnect</a>( 400 );
<a name="l00132"></a>00132     <span class="keywordflow">return</span>;
<a name="l00133"></a>00133   }
<a name="l00134"></a>00134 
<a name="l00135"></a>00135   <span class="keywordflow">return</span>;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00138"></a>00138 }
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a69d453756ecb2f9edbd5043e74081dcf">00140</a> <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a69d453756ecb2f9edbd5043e74081dcf">HttpConnection::processRequest</a>( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request )
<a name="l00141"></a>00141 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a69d453756ecb2f9edbd5043e74081dcf">HttpConnection::processRequest</a>)
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="keywordtype">int</span> error = 200;
<a name="l00144"></a>00144   std::stringstream h;
<a name="l00145"></a>00145   std::stringstream b;
<a name="l00146"></a>00146   std::string titleString = <span class="stringliteral">&quot;QuickFIX Engine Web Interface&quot;</span>;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148   { <a class="code" href="class_h_t_m_l_1_1_h_e_a_d.html">HEAD</a> head(h); head.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00149"></a>00149     { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(h); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00150"></a>00150       { <a class="code" href="class_h_t_m_l_1_1_t_i_t_l_e.html">TITLE</a> title(h); title.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(titleString); }
<a name="l00151"></a>00151       { <a class="code" href="class_h_t_m_l_1_1_h1.html">H1</a> h1(h); h1.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(titleString); }
<a name="l00152"></a>00152     }
<a name="l00153"></a>00153     { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(h); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00154"></a>00154       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(h); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;HOME&quot;</span>); }
<a name="l00155"></a>00155       h &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>;
<a name="l00156"></a>00156       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(h); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>()).text(<span class="stringliteral">&quot;RELOAD&quot;</span>); }
<a name="l00157"></a>00157     }
<a name="l00158"></a>00158     <a class="code" href="class_h_t_m_l_1_1_h_r.html">HR</a> hr(h); hr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00159"></a>00159   }
<a name="l00160"></a>00160 
<a name="l00161"></a>00161   <a class="code" href="class_h_t_m_l_1_1_b_o_d_y.html">BODY</a> body(b); body.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="keywordflow">try</span>
<a name="l00164"></a>00164   {
<a name="l00165"></a>00165     <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/&quot;</span> )
<a name="l00166"></a>00166       <a class="code" href="class_f_i_x_1_1_http_connection.html#a13f386500376cf651b0d4a72cdc465e9">processRoot</a>( request, h, b );
<a name="l00167"></a>00167     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/resetSessions&quot;</span> )
<a name="l00168"></a>00168       <a class="code" href="class_f_i_x_1_1_http_connection.html#ad69016119bc3d907d055b6a152d44a7a">processResetSessions</a>( request, h, b );
<a name="l00169"></a>00169     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/refreshSessions&quot;</span> )
<a name="l00170"></a>00170       <a class="code" href="class_f_i_x_1_1_http_connection.html#aed4c0ec8833f9f0d43d7f448569de264">processRefreshSessions</a>( request, h, b );
<a name="l00171"></a>00171     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/enableSessions&quot;</span> )
<a name="l00172"></a>00172       <a class="code" href="class_f_i_x_1_1_http_connection.html#a307f0c146e41af18af2666426af4cfeb">processEnableSessions</a>( request, h, b );
<a name="l00173"></a>00173     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/disableSessions&quot;</span> )
<a name="l00174"></a>00174       <a class="code" href="class_f_i_x_1_1_http_connection.html#a23ef5a463d3a760804ffcad73acc7640">processDisableSessions</a>( request, h, b );
<a name="l00175"></a>00175     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/session&quot;</span> )
<a name="l00176"></a>00176       <a class="code" href="class_f_i_x_1_1_http_connection.html#a69d7c3eae0f282449d10fb54611810ee">processSession</a>( request, h, b );
<a name="l00177"></a>00177     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/resetSession&quot;</span> )
<a name="l00178"></a>00178       <a class="code" href="class_f_i_x_1_1_http_connection.html#a3bfe60a1141d2292a72ac8676292a378">processResetSession</a>( request, h, b );
<a name="l00179"></a>00179     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( request.<a class="code" href="class_f_i_x_1_1_http_message.html#a28be21b7b31529fcb5b40ab527196c4b">getRootString</a>() == <span class="stringliteral">&quot;/refreshSession&quot;</span> )
<a name="l00180"></a>00180       <a class="code" href="class_f_i_x_1_1_http_connection.html#a2fe1c705c358dbb784cd8020dd778ba2">processRefreshSession</a>( request, h, b );
<a name="l00181"></a>00181     <span class="keywordflow">else</span>
<a name="l00182"></a>00182       error = 404;
<a name="l00183"></a>00183   }
<a name="l00184"></a>00184   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00185"></a>00185   {
<a name="l00186"></a>00186     error = 400;
<a name="l00187"></a>00187     b &lt;&lt; e.what();
<a name="l00188"></a>00188   }
<a name="l00189"></a>00189 
<a name="l00190"></a>00190   std::string response = <span class="stringliteral">&quot;&lt;HTML&gt;&quot;</span> + h.str() + b.str() + <span class="stringliteral">&quot;&lt;/HTML&gt;&quot;</span>;
<a name="l00191"></a>00191   <a class="code" href="class_f_i_x_1_1_http_connection.html#ab4ad2f36c1a049579136d086f023b50b">send</a>( <a class="code" href="class_f_i_x_1_1_http_message.html#a8f5035fc4ec1e49e071dc31ee7cb4486">HttpMessage::createResponse</a>(error, error == 200 ? response : <span class="stringliteral">&quot;&quot;</span>) );
<a name="l00192"></a>00192 
<a name="l00193"></a>00193   <a class="code" href="class_f_i_x_1_1_http_connection.html#a9a434bd5615a730d92258241f37b2807">disconnect</a>();
<a name="l00194"></a>00194 
<a name="l00195"></a>00195   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00196"></a>00196 }
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a13f386500376cf651b0d4a72cdc465e9">HttpConnection::processRoot</a>
<a name="l00199"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a13f386500376cf651b0d4a72cdc465e9">00199</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00200"></a>00200 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a13f386500376cf651b0d4a72cdc465e9">HttpConnection::processRoot</a>)
<a name="l00201"></a>00201 
<a name="l00202"></a>00202   <a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html">TABLE</a> table(b); table.<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#a6e2568b8666f4314855c2996a6321d78">border</a>(1).<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#aa8b89da76cb6fe30fd2bc9853b6024f5">cellspacing</a>(2).<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#a652417ee0de9e1c2393f7351f376e3d4">width</a>(100).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   { <a class="code" href="class_h_t_m_l_1_1_c_a_p_t_i_o_n.html">CAPTION</a> caption(b); caption.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00205"></a>00205     <a class="code" href="class_h_t_m_l_1_1_e_m.html">EM</a> em(b); em.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00206"></a>00206     b &lt;&lt; <a class="code" href="class_f_i_x_1_1_session.html#ad4282bc1bbe65d8fa154577e3a66be4f">Session::numSessions</a>() &lt;&lt; <span class="stringliteral">&quot; Sessions managed by QuickFIX&quot;</span>;
<a name="l00207"></a>00207     { <a class="code" href="class_h_t_m_l_1_1_h_r.html">HR</a> hr(b); hr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(); }
<a name="l00208"></a>00208     { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/resetSessions&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;RESET&quot;</span>); }
<a name="l00209"></a>00209     { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/refreshSessions&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;REFRESH&quot;</span>); }
<a name="l00210"></a>00210     { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/enableSessions&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;ENABLE&quot;</span>); }
<a name="l00211"></a>00211     { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/disableSessions&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;DISABLE&quot;</span>); }
<a name="l00212"></a>00212   }
<a name="l00213"></a>00213 
<a name="l00214"></a>00214   { <a class="code" href="class_h_t_m_l_1_1_t_r.html">TR</a> tr(b); tr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00215"></a>00215     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Session&quot;</span>); }
<a name="l00216"></a>00216     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;ConnectionType&quot;</span>); }
<a name="l00217"></a>00217     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Enabled&quot;</span>); }
<a name="l00218"></a>00218     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Session Time&quot;</span>); }
<a name="l00219"></a>00219     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Logged On&quot;</span>); }
<a name="l00220"></a>00220     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Next Incoming&quot;</span>); }
<a name="l00221"></a>00221     { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_d.html#ab788df4e239c4da48076aefdf2086677">align</a>(<span class="stringliteral">&quot;center&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Next Outgoing&quot;</span>); }
<a name="l00222"></a>00222   }
<a name="l00223"></a>00223 
<a name="l00224"></a>00224   std::set&lt;SessionID&gt; sessions = <a class="code" href="class_f_i_x_1_1_session.html#ada7de3bd09eef0f5a1bbe9cf1341ce69">Session::getSessions</a>();
<a name="l00225"></a>00225   std::set&lt;SessionID&gt;::iterator i;
<a name="l00226"></a>00226   <span class="keywordflow">for</span>( i = sessions.begin(); i != sessions.end(); ++i )
<a name="l00227"></a>00227   {
<a name="l00228"></a>00228     <a class="code" href="class_f_i_x_1_1_session.html" title="Maintains the state and implements the logic of a FIX session.">Session</a>* pSession = <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( *i );
<a name="l00229"></a>00229     <span class="keywordflow">if</span>( !pSession ) <span class="keywordflow">continue</span>;
<a name="l00230"></a>00230 
<a name="l00231"></a>00231     { <a class="code" href="class_h_t_m_l_1_1_t_r.html">TR</a> tr(b); tr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00232"></a>00232       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00233"></a>00233         std::string href = <span class="stringliteral">&quot;/session?BeginString=&quot;</span> + i-&gt;getBeginString().getValue() +
<a name="l00234"></a>00234                             <span class="stringliteral">&quot;&amp;SenderCompID=&quot;</span> + i-&gt;getSenderCompID().getValue() +
<a name="l00235"></a>00235                             <span class="stringliteral">&quot;&amp;TargetCompID=&quot;</span> + i-&gt;getTargetCompID().getValue();
<a name="l00236"></a>00236         <span class="keywordflow">if</span>( i-&gt;getSessionQualifier().size() )
<a name="l00237"></a>00237           href += <span class="stringliteral">&quot;&amp;SessionQualifier=&quot;</span> + i-&gt;getSessionQualifier();
<a name="l00238"></a>00238 
<a name="l00239"></a>00239         <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(i-&gt;toString());
<a name="l00240"></a>00240       }
<a name="l00241"></a>00241       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a8e2c90fbee4e47a9ea77c8771d10f18c">isInitiator</a>() ? <span class="stringliteral">&quot;initiator&quot;</span> : <span class="stringliteral">&quot;acceptor&quot;</span>); }
<a name="l00242"></a>00242       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a65b225344f357b8dfe2dc782593a14ad">isEnabled</a>() ? <span class="stringliteral">&quot;yes&quot;</span> : <span class="stringliteral">&quot;no&quot;</span>); }
<a name="l00243"></a>00243       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a0eeb285d37f00a51f0c17149b6606a9e">isSessionTime</a>(<a class="code" href="class_f_i_x_1_1_utc_time_stamp.html" title="Date and Time represented in UTC.">UtcTimeStamp</a>()) ? <span class="stringliteral">&quot;yes&quot;</span> : <span class="stringliteral">&quot;no&quot;</span>); }
<a name="l00244"></a>00244       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#ae7f1ee1eaa16d5035660177280abccf3">isLoggedOn</a>() ? <span class="stringliteral">&quot;yes&quot;</span> : <span class="stringliteral">&quot;no&quot;</span>); }
<a name="l00245"></a>00245       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#af255323dad019d5139b495413c572700">getExpectedTargetNum</a>()); }
<a name="l00246"></a>00246       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(b); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a4dd4833f8aba89dbfaad19f3bf1ab9a5">getExpectedSenderNum</a>()); }
<a name="l00247"></a>00247     }
<a name="l00248"></a>00248   }
<a name="l00249"></a>00249 
<a name="l00250"></a>00250   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#ad69016119bc3d907d055b6a152d44a7a">HttpConnection::processResetSessions</a>
<a name="l00254"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#ad69016119bc3d907d055b6a152d44a7a">00254</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00255"></a>00255 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#ad69016119bc3d907d055b6a152d44a7a">HttpConnection::processResetSessions</a>)
<a name="l00256"></a>00256 
<a name="l00257"></a>00257   <span class="keyword">try</span>
<a name="l00258"></a>00258   {
<a name="l00259"></a>00259     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00260"></a>00260 
<a name="l00261"></a>00261     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00262"></a>00262     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00263"></a>00263     {
<a name="l00264"></a>00264       confirm = <span class="keyword">true</span>;
<a name="l00265"></a>00265       std::set&lt;SessionID&gt; sessions = <a class="code" href="class_f_i_x_1_1_session.html#ada7de3bd09eef0f5a1bbe9cf1341ce69">Session::getSessions</a>();
<a name="l00266"></a>00266       std::set&lt;SessionID&gt;::iterator session;
<a name="l00267"></a>00267       <span class="keywordflow">for</span>( session = sessions.begin(); session != sessions.end(); ++session )
<a name="l00268"></a>00268         <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( *session )-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a63954d7e1fac4ce05c18dbaccc8ce2fa">reset</a>();
<a name="l00269"></a>00269       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00270"></a>00270     }
<a name="l00271"></a>00271 
<a name="l00272"></a>00272     <span class="keywordflow">if</span>( confirm )
<a name="l00273"></a>00273     {
<a name="l00274"></a>00274       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/&apos;&gt;&quot;</span>;
<a name="l00275"></a>00275       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00276"></a>00276       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00277"></a>00277       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Sessions&quot;</span>); }
<a name="l00278"></a>00278       b &lt;&lt; <span class="stringliteral">&quot; have been reset&quot;</span>;
<a name="l00279"></a>00279     }
<a name="l00280"></a>00280     <span class="keywordflow">else</span>
<a name="l00281"></a>00281     {
<a name="l00282"></a>00282       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00283"></a>00283         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00284"></a>00284         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to reset all sessions ?&quot;</span>;
<a name="l00285"></a>00285       }
<a name="l00286"></a>00286       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00287"></a>00287         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00288"></a>00288         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;?confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, reset sessions&quot;</span>); }
<a name="l00289"></a>00289         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00290"></a>00290         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not reset sessions&quot;</span>); }
<a name="l00291"></a>00291         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00292"></a>00292       }
<a name="l00293"></a>00293     }
<a name="l00294"></a>00294   }
<a name="l00295"></a>00295   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00296"></a>00296   {
<a name="l00297"></a>00297     b &lt;&lt; e.what();
<a name="l00298"></a>00298   }
<a name="l00299"></a>00299 
<a name="l00300"></a>00300   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00301"></a>00301 }
<a name="l00302"></a>00302 
<a name="l00303"></a>00303 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#aed4c0ec8833f9f0d43d7f448569de264">HttpConnection::processRefreshSessions</a>
<a name="l00304"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#aed4c0ec8833f9f0d43d7f448569de264">00304</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00305"></a>00305 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#aed4c0ec8833f9f0d43d7f448569de264">HttpConnection::processRefreshSessions</a>)
<a name="l00306"></a>00306 
<a name="l00307"></a>00307   <span class="keyword">try</span>
<a name="l00308"></a>00308   {
<a name="l00309"></a>00309     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00310"></a>00310 
<a name="l00311"></a>00311     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00312"></a>00312     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00313"></a>00313     {
<a name="l00314"></a>00314       confirm = <span class="keyword">true</span>;
<a name="l00315"></a>00315       std::set&lt;SessionID&gt; sessions = <a class="code" href="class_f_i_x_1_1_session.html#ada7de3bd09eef0f5a1bbe9cf1341ce69">Session::getSessions</a>();
<a name="l00316"></a>00316       std::set&lt;SessionID&gt;::iterator session;
<a name="l00317"></a>00317       <span class="keywordflow">for</span>( session = sessions.begin(); session != sessions.end(); ++session )
<a name="l00318"></a>00318         <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( *session )-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a9112009d2f4231b2eb63c7923e76db36">refresh</a>();
<a name="l00319"></a>00319       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00320"></a>00320     }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322     <span class="keywordflow">if</span>( confirm )
<a name="l00323"></a>00323     {
<a name="l00324"></a>00324       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/&apos;&gt;&quot;</span>;
<a name="l00325"></a>00325       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00326"></a>00326       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00327"></a>00327       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Sessions&quot;</span>); }
<a name="l00328"></a>00328       b &lt;&lt; <span class="stringliteral">&quot; have been refreshed&quot;</span>;
<a name="l00329"></a>00329     }
<a name="l00330"></a>00330     <span class="keywordflow">else</span>
<a name="l00331"></a>00331     {
<a name="l00332"></a>00332       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00333"></a>00333         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00334"></a>00334         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to refresh all sessions ?&quot;</span>;
<a name="l00335"></a>00335       }
<a name="l00336"></a>00336       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00337"></a>00337         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00338"></a>00338         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;?confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, refresh sessions&quot;</span>); }
<a name="l00339"></a>00339         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00340"></a>00340         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not refresh sessions&quot;</span>); }
<a name="l00341"></a>00341         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00342"></a>00342       }
<a name="l00343"></a>00343     }
<a name="l00344"></a>00344   }
<a name="l00345"></a>00345   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00346"></a>00346   {
<a name="l00347"></a>00347     b &lt;&lt; e.what();
<a name="l00348"></a>00348   }
<a name="l00349"></a>00349 
<a name="l00350"></a>00350   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00351"></a>00351 }
<a name="l00352"></a>00352 
<a name="l00353"></a>00353 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a307f0c146e41af18af2666426af4cfeb">HttpConnection::processEnableSessions</a>
<a name="l00354"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a307f0c146e41af18af2666426af4cfeb">00354</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00355"></a>00355 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a307f0c146e41af18af2666426af4cfeb">HttpConnection::processEnableSessions</a>)
<a name="l00356"></a>00356 
<a name="l00357"></a>00357   <span class="keyword">try</span>
<a name="l00358"></a>00358   {
<a name="l00359"></a>00359     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00360"></a>00360 
<a name="l00361"></a>00361     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00362"></a>00362     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00363"></a>00363     {
<a name="l00364"></a>00364       confirm = <span class="keyword">true</span>;
<a name="l00365"></a>00365       std::set&lt;SessionID&gt; sessions = <a class="code" href="class_f_i_x_1_1_session.html#ada7de3bd09eef0f5a1bbe9cf1341ce69">Session::getSessions</a>();
<a name="l00366"></a>00366       std::set&lt;SessionID&gt;::iterator session;
<a name="l00367"></a>00367       <span class="keywordflow">for</span>( session = sessions.begin(); session != sessions.end(); ++session )
<a name="l00368"></a>00368         <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( *session )-&gt;<a class="code" href="class_f_i_x_1_1_session.html#aaae9c3de2cd245d8896bc2bb06942202">logon</a>();
<a name="l00369"></a>00369       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00370"></a>00370     }
<a name="l00371"></a>00371 
<a name="l00372"></a>00372     <span class="keywordflow">if</span>( confirm )
<a name="l00373"></a>00373     {
<a name="l00374"></a>00374       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/&apos;&gt;&quot;</span>;
<a name="l00375"></a>00375       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00376"></a>00376       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00377"></a>00377       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Sessions&quot;</span>); }
<a name="l00378"></a>00378       b &lt;&lt; <span class="stringliteral">&quot; have been enabled&quot;</span>;
<a name="l00379"></a>00379     }
<a name="l00380"></a>00380     <span class="keywordflow">else</span>
<a name="l00381"></a>00381     {
<a name="l00382"></a>00382       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00383"></a>00383         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00384"></a>00384         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to enable all sessions ?&quot;</span>;
<a name="l00385"></a>00385       }
<a name="l00386"></a>00386       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00387"></a>00387         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00388"></a>00388         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;?confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, enable sessions&quot;</span>); }
<a name="l00389"></a>00389         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00390"></a>00390         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not enable sessions&quot;</span>); }
<a name="l00391"></a>00391         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00392"></a>00392       }
<a name="l00393"></a>00393     }
<a name="l00394"></a>00394   }
<a name="l00395"></a>00395   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00396"></a>00396   {
<a name="l00397"></a>00397     b &lt;&lt; e.what();
<a name="l00398"></a>00398   }
<a name="l00399"></a>00399 
<a name="l00400"></a>00400   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00401"></a>00401 }
<a name="l00402"></a>00402 
<a name="l00403"></a>00403 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a23ef5a463d3a760804ffcad73acc7640">HttpConnection::processDisableSessions</a>
<a name="l00404"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a23ef5a463d3a760804ffcad73acc7640">00404</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00405"></a>00405 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a23ef5a463d3a760804ffcad73acc7640">HttpConnection::processDisableSessions</a>)
<a name="l00406"></a>00406 
<a name="l00407"></a>00407   <span class="keyword">try</span>
<a name="l00408"></a>00408   {
<a name="l00409"></a>00409     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00410"></a>00410 
<a name="l00411"></a>00411     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00412"></a>00412     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00413"></a>00413     {
<a name="l00414"></a>00414       confirm = <span class="keyword">true</span>;
<a name="l00415"></a>00415       std::set&lt;SessionID&gt; sessions = <a class="code" href="class_f_i_x_1_1_session.html#ada7de3bd09eef0f5a1bbe9cf1341ce69">Session::getSessions</a>();
<a name="l00416"></a>00416       std::set&lt;SessionID&gt;::iterator session;
<a name="l00417"></a>00417       <span class="keywordflow">for</span>( session = sessions.begin(); session != sessions.end(); ++session )
<a name="l00418"></a>00418         <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( *session )-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a42fdede6f627fd12b5455412ae091fe6">logout</a>();
<a name="l00419"></a>00419       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00420"></a>00420     }
<a name="l00421"></a>00421 
<a name="l00422"></a>00422     <span class="keywordflow">if</span>( confirm )
<a name="l00423"></a>00423     {
<a name="l00424"></a>00424       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/&apos;&gt;&quot;</span>;
<a name="l00425"></a>00425       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00426"></a>00426       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00427"></a>00427       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;Sessions&quot;</span>); }
<a name="l00428"></a>00428       b &lt;&lt; <span class="stringliteral">&quot; have been disabled&quot;</span>;
<a name="l00429"></a>00429     }
<a name="l00430"></a>00430     <span class="keywordflow">else</span>
<a name="l00431"></a>00431     {
<a name="l00432"></a>00432       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00433"></a>00433         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00434"></a>00434         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to disable all sessions ?&quot;</span>;
<a name="l00435"></a>00435       }
<a name="l00436"></a>00436       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00437"></a>00437         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00438"></a>00438         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;?confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, disable sessions&quot;</span>); }
<a name="l00439"></a>00439         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00440"></a>00440         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/&quot;</span>).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not disable sessions&quot;</span>); }
<a name="l00441"></a>00441         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00442"></a>00442       }
<a name="l00443"></a>00443     }
<a name="l00444"></a>00444   }
<a name="l00445"></a>00445   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00446"></a>00446   {
<a name="l00447"></a>00447     b &lt;&lt; e.what();
<a name="l00448"></a>00448   }
<a name="l00449"></a>00449 
<a name="l00450"></a>00450   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00451"></a>00451 }
<a name="l00452"></a>00452 
<a name="l00453"></a>00453 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a69d7c3eae0f282449d10fb54611810ee">HttpConnection::processSession</a>
<a name="l00454"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a69d7c3eae0f282449d10fb54611810ee">00454</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00455"></a>00455 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a69d7c3eae0f282449d10fb54611810ee">HttpConnection::processSession</a>)
<a name="l00456"></a>00456 
<a name="l00457"></a>00457   <span class="keyword">try</span>
<a name="l00458"></a>00458   {
<a name="l00459"></a>00459     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00460"></a>00460     std::string url = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>();
<a name="l00461"></a>00461     std::string beginString = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;BeginString&quot;</span> );
<a name="l00462"></a>00462     std::string senderCompID = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SenderCompID&quot;</span> );
<a name="l00463"></a>00463     std::string targetCompID = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;TargetCompID&quot;</span> );
<a name="l00464"></a>00464     std::string sessionQualifier;
<a name="l00465"></a>00465     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;SessionQualifier&quot;</span>) )
<a name="l00466"></a>00466       sessionQualifier = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SessionQualifier&quot;</span> );
<a name="l00467"></a>00467 
<a name="l00468"></a>00468     <a class="code" href="class_f_i_x_1_1_session_i_d.html" title="Unique session id consists of BeginString, SenderCompID and TargetCompID.">SessionID</a> sessionID( beginString, senderCompID, targetCompID, sessionQualifier );
<a name="l00469"></a>00469     <a class="code" href="class_f_i_x_1_1_session.html" title="Maintains the state and implements the logic of a FIX session.">Session</a>* pSession = <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( sessionID );
<a name="l00470"></a>00470     <span class="keywordflow">if</span>( pSession == 0 ) <span class="keywordflow">throw</span> <a class="code" href="struct_f_i_x_1_1_session_not_found.html" title="Session cannot be found for specified action.">SessionNotFound</a>();
<a name="l00471"></a>00471 
<a name="l00472"></a>00472     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;Enabled&quot;</span>) )
<a name="l00473"></a>00473     {
<a name="l00474"></a>00474       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;Enabled&quot;</span>) == <span class="stringliteral">&quot;0&quot;</span> ? pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a42fdede6f627fd12b5455412ae091fe6">logout</a>() : pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#aaae9c3de2cd245d8896bc2bb06942202">logon</a>();
<a name="l00475"></a>00475       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;Enabled&quot;</span>);
<a name="l00476"></a>00476     }
<a name="l00477"></a>00477     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;Next%20Incoming&quot;</span>) )
<a name="l00478"></a>00478     {
<a name="l00479"></a>00479       <span class="keywordtype">int</span> value = <a class="code" href="struct_f_i_x_1_1_int_convertor.html#a4622a9856df1cda61d637e6551da7ba7">IntConvertor::convert</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;Next%20Incoming&quot;</span>) );
<a name="l00480"></a>00480       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#ae7e441bcb58438c47b61ae5c7f402437">setNextTargetMsgSeqNum</a>( value &lt;= 0 ? 1 : value );
<a name="l00481"></a>00481       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;Next%20Incoming&quot;</span>);
<a name="l00482"></a>00482     }
<a name="l00483"></a>00483     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;Next%20Outgoing&quot;</span>) )
<a name="l00484"></a>00484     {
<a name="l00485"></a>00485       <span class="keywordtype">int</span> value = <a class="code" href="struct_f_i_x_1_1_int_convertor.html#a4622a9856df1cda61d637e6551da7ba7">IntConvertor::convert</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;Next%20Outgoing&quot;</span>) );
<a name="l00486"></a>00486       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a659cb5b9554445afd8bd345f09c2dc04">setNextSenderMsgSeqNum</a>( value &lt;= 0 ? 1 : value );
<a name="l00487"></a>00487       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;Next%20Outgoing&quot;</span>);
<a name="l00488"></a>00488     }
<a name="l00489"></a>00489     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a1dd04407b18768186e7c34fa6ae092c0">SEND_REDUNDANT_RESENDREQUESTS</a>) )
<a name="l00490"></a>00490     {
<a name="l00491"></a>00491       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a1318e27a1481e58afa83576857ec52b2">setSendRedundantResendRequests</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a1dd04407b18768186e7c34fa6ae092c0">SEND_REDUNDANT_RESENDREQUESTS</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00492"></a>00492       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a1dd04407b18768186e7c34fa6ae092c0">SEND_REDUNDANT_RESENDREQUESTS</a>);
<a name="l00493"></a>00493     }
<a name="l00494"></a>00494     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a39337b7fb9d25b1f0df6c610618823b5">CHECK_COMPID</a>) )
<a name="l00495"></a>00495     {
<a name="l00496"></a>00496       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#acf15b44195735e86c2b4366f3a1ba720">setCheckCompId</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a39337b7fb9d25b1f0df6c610618823b5">CHECK_COMPID</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00497"></a>00497       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a39337b7fb9d25b1f0df6c610618823b5">CHECK_COMPID</a>);
<a name="l00498"></a>00498     }
<a name="l00499"></a>00499     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a9f491ec5b28b392577643dc2293311c3">CHECK_LATENCY</a>) )
<a name="l00500"></a>00500     {
<a name="l00501"></a>00501       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a7cb14f3454650909637227d5044662ea">setCheckLatency</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a9f491ec5b28b392577643dc2293311c3">CHECK_LATENCY</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00502"></a>00502       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a9f491ec5b28b392577643dc2293311c3">CHECK_LATENCY</a>);
<a name="l00503"></a>00503     }
<a name="l00504"></a>00504     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#ae0921bd1d9ee2e1217ac66f8a8e9c2cb">MAX_LATENCY</a>) )
<a name="l00505"></a>00505     {
<a name="l00506"></a>00506       <span class="keywordtype">int</span> value = <a class="code" href="struct_f_i_x_1_1_int_convertor.html#a4622a9856df1cda61d637e6551da7ba7">IntConvertor::convert</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#ae0921bd1d9ee2e1217ac66f8a8e9c2cb">MAX_LATENCY</a>) );
<a name="l00507"></a>00507       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a4e9ea9b1798c8ecc0ec9dc3a5cef2749">setMaxLatency</a>( value &lt;= 0 ? 1 : value );
<a name="l00508"></a>00508       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#ae0921bd1d9ee2e1217ac66f8a8e9c2cb">MAX_LATENCY</a>);
<a name="l00509"></a>00509     }
<a name="l00510"></a>00510     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a1bdf17337385b7f3794eb4a57c83322f">LOGON_TIMEOUT</a>) )
<a name="l00511"></a>00511     {
<a name="l00512"></a>00512       <span class="keywordtype">int</span> value = <a class="code" href="struct_f_i_x_1_1_int_convertor.html#a4622a9856df1cda61d637e6551da7ba7">IntConvertor::convert</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a1bdf17337385b7f3794eb4a57c83322f">LOGON_TIMEOUT</a>) );
<a name="l00513"></a>00513       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#ae9c3ab8ab92f9418389dec8a88c7da22">setLogonTimeout</a>( value &lt;= 0 ? 1 : value );
<a name="l00514"></a>00514       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a1bdf17337385b7f3794eb4a57c83322f">LOGON_TIMEOUT</a>);
<a name="l00515"></a>00515     }
<a name="l00516"></a>00516     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a02ee8e0d9b3de68689486ad8b77b1a21">LOGOUT_TIMEOUT</a>) )
<a name="l00517"></a>00517     {
<a name="l00518"></a>00518       <span class="keywordtype">int</span> value = <a class="code" href="struct_f_i_x_1_1_int_convertor.html#a4622a9856df1cda61d637e6551da7ba7">IntConvertor::convert</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a02ee8e0d9b3de68689486ad8b77b1a21">LOGOUT_TIMEOUT</a>) );
<a name="l00519"></a>00519       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#aff6149884217e69cf84442152262fe28">setLogoutTimeout</a>( value &lt;= 0 ? 1 : value );
<a name="l00520"></a>00520       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a02ee8e0d9b3de68689486ad8b77b1a21">LOGOUT_TIMEOUT</a>);
<a name="l00521"></a>00521     }
<a name="l00522"></a>00522     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#ac98bce2c23136dd017d1e653b0cc3bd5">RESET_ON_LOGON</a>) )
<a name="l00523"></a>00523     {
<a name="l00524"></a>00524       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a0f68cc2e39e6f183fe7abae8df195bca">setResetOnLogon</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#ac98bce2c23136dd017d1e653b0cc3bd5">RESET_ON_LOGON</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00525"></a>00525       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#ac98bce2c23136dd017d1e653b0cc3bd5">RESET_ON_LOGON</a>);
<a name="l00526"></a>00526     }
<a name="l00527"></a>00527     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a8619f038aa9cf800e7d4d7c6636dd1ab">RESET_ON_LOGOUT</a>) )
<a name="l00528"></a>00528     {
<a name="l00529"></a>00529       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a27d0d611deb25d1d90c8c1a7f35dda90">setResetOnLogout</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a8619f038aa9cf800e7d4d7c6636dd1ab">RESET_ON_LOGOUT</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00530"></a>00530       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a8619f038aa9cf800e7d4d7c6636dd1ab">RESET_ON_LOGOUT</a>);
<a name="l00531"></a>00531     }
<a name="l00532"></a>00532     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#adb1f0aaf19a81325a430c9913a80d2da">RESET_ON_DISCONNECT</a>) )
<a name="l00533"></a>00533     {
<a name="l00534"></a>00534       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a8d817bb43a8cc59b23d0ecdcf126fe04">setResetOnDisconnect</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#adb1f0aaf19a81325a430c9913a80d2da">RESET_ON_DISCONNECT</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00535"></a>00535       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#adb1f0aaf19a81325a430c9913a80d2da">RESET_ON_DISCONNECT</a>);
<a name="l00536"></a>00536     }
<a name="l00537"></a>00537     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#a7fd943dc690440715eec47c3b0bd9e57">REFRESH_ON_LOGON</a>) )
<a name="l00538"></a>00538     {
<a name="l00539"></a>00539       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a87a120f30485fd99df1499714f30f0b3">setRefreshOnLogon</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#a7fd943dc690440715eec47c3b0bd9e57">REFRESH_ON_LOGON</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00540"></a>00540       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#a7fd943dc690440715eec47c3b0bd9e57">REFRESH_ON_LOGON</a>);
<a name="l00541"></a>00541     }
<a name="l00542"></a>00542     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#af2c177a44b06f2e0f5084bc68aa30a7c">MILLISECONDS_IN_TIMESTAMP</a>) )
<a name="l00543"></a>00543     {
<a name="l00544"></a>00544       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a2ae481714cd3f6580cbedbdc2a027704">setMillisecondsInTimeStamp</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#af2c177a44b06f2e0f5084bc68aa30a7c">MILLISECONDS_IN_TIMESTAMP</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00545"></a>00545       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#af2c177a44b06f2e0f5084bc68aa30a7c">MILLISECONDS_IN_TIMESTAMP</a>);
<a name="l00546"></a>00546     }
<a name="l00547"></a>00547     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<a class="code" href="namespace_f_i_x.html#ad5346c0154839ba30792e11d37267b0f">PERSIST_MESSAGES</a>) )
<a name="l00548"></a>00548     {
<a name="l00549"></a>00549       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#abd22855e4e244ff8b013fbbabfbd9e97">setPersistMessages</a>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<a class="code" href="namespace_f_i_x.html#ad5346c0154839ba30792e11d37267b0f">PERSIST_MESSAGES</a>) != <span class="stringliteral">&quot;0&quot;</span> );
<a name="l00550"></a>00550       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<a class="code" href="namespace_f_i_x.html#ad5346c0154839ba30792e11d37267b0f">PERSIST_MESSAGES</a>);
<a name="l00551"></a>00551     }
<a name="l00552"></a>00552 
<a name="l00553"></a>00553     <span class="keywordflow">if</span>( url != copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() )
<a name="l00554"></a>00554       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=0;URL=&apos;&quot;</span> &lt;&lt; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() &lt;&lt; <span class="stringliteral">&quot;&apos;&gt;&quot;</span>;
<a name="l00555"></a>00555 
<a name="l00556"></a>00556     <a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html">TABLE</a> table(b); table.<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#a6e2568b8666f4314855c2996a6321d78">border</a>(1).<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#aa8b89da76cb6fe30fd2bc9853b6024f5">cellspacing</a>(2).<a class="code" href="class_h_t_m_l_1_1_t_a_b_l_e.html#a652417ee0de9e1c2393f7351f376e3d4">width</a>(100).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00557"></a>00557 
<a name="l00558"></a>00558     { <a class="code" href="class_h_t_m_l_1_1_c_a_p_t_i_o_n.html">CAPTION</a> caption(b); caption.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00559"></a>00559       <a class="code" href="class_h_t_m_l_1_1_e_m.html">EM</a> em(b); em.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00560"></a>00560       b &lt;&lt; sessionID;
<a name="l00561"></a>00561       { <a class="code" href="class_h_t_m_l_1_1_h_r.html">HR</a> hr(b); hr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(); }
<a name="l00562"></a>00562       { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/resetSession&quot;</span> + copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;RESET&quot;</span>); }
<a name="l00563"></a>00563       { b &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>; <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/refreshSession&quot;</span> + copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(<span class="stringliteral">&quot;REFRESH&quot;</span>); }
<a name="l00564"></a>00564     }
<a name="l00565"></a>00565 
<a name="l00566"></a>00566     showRow( b, <span class="stringliteral">&quot;Enabled&quot;</span>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a65b225344f357b8dfe2dc782593a14ad">isEnabled</a>(), url );
<a name="l00567"></a>00567     showRow( b, <span class="stringliteral">&quot;ConnectionType&quot;</span>, std::string(pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a8e2c90fbee4e47a9ea77c8771d10f18c">isInitiator</a>() ?<span class="stringliteral">&quot;initiator&quot;</span> : <span class="stringliteral">&quot;acceptor&quot;</span>) );
<a name="l00568"></a>00568     showRow( b, <span class="stringliteral">&quot;SessionTime&quot;</span>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a0eeb285d37f00a51f0c17149b6606a9e">isSessionTime</a>(<a class="code" href="class_f_i_x_1_1_utc_time_stamp.html" title="Date and Time represented in UTC.">UtcTimeStamp</a>()) );
<a name="l00569"></a>00569     showRow( b, <span class="stringliteral">&quot;Logged On&quot;</span>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#ae7f1ee1eaa16d5035660177280abccf3">isLoggedOn</a>() );
<a name="l00570"></a>00570     showRow( b, <span class="stringliteral">&quot;Next Incoming&quot;</span>, (<span class="keywordtype">int</span>)pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#af255323dad019d5139b495413c572700">getExpectedTargetNum</a>(), url );
<a name="l00571"></a>00571     showRow( b, <span class="stringliteral">&quot;Next Outgoing&quot;</span>, (<span class="keywordtype">int</span>)pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a4dd4833f8aba89dbfaad19f3bf1ab9a5">getExpectedSenderNum</a>(), url );
<a name="l00572"></a>00572     showRow( b, <a class="code" href="namespace_f_i_x.html#a1dd04407b18768186e7c34fa6ae092c0">SEND_REDUNDANT_RESENDREQUESTS</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a2c27f083749923d8c8d7bd2c16ee6748">getSendRedundantResendRequests</a>(), url );
<a name="l00573"></a>00573     showRow( b, <a class="code" href="namespace_f_i_x.html#a39337b7fb9d25b1f0df6c610618823b5">CHECK_COMPID</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a1c99b4454c39aad7fff9e98ccd3636e3">getCheckCompId</a>(), url );
<a name="l00574"></a>00574     showRow( b, <a class="code" href="namespace_f_i_x.html#a9f491ec5b28b392577643dc2293311c3">CHECK_LATENCY</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#ae9b90f2e9ed07cbefd4f2df1ba815427">getCheckLatency</a>(), url );
<a name="l00575"></a>00575     showRow( b, <a class="code" href="namespace_f_i_x.html#ae0921bd1d9ee2e1217ac66f8a8e9c2cb">MAX_LATENCY</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a464937ab929e4914e2638df895e5112c">getMaxLatency</a>(), url );
<a name="l00576"></a>00576     showRow( b, <a class="code" href="namespace_f_i_x.html#a1bdf17337385b7f3794eb4a57c83322f">LOGON_TIMEOUT</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a7427aad0a9eeb33535d68f76d6bec9a9">getLogonTimeout</a>(), url );
<a name="l00577"></a>00577     showRow( b, <a class="code" href="namespace_f_i_x.html#a02ee8e0d9b3de68689486ad8b77b1a21">LOGOUT_TIMEOUT</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a82cb71ecfee75a704ba0505c5b27af21">getLogoutTimeout</a>(), url );
<a name="l00578"></a>00578     showRow( b, <a class="code" href="namespace_f_i_x.html#ac98bce2c23136dd017d1e653b0cc3bd5">RESET_ON_LOGON</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a9794a1934a8b644eea8e70471d9cd9f2">getResetOnLogon</a>(), url );
<a name="l00579"></a>00579     showRow( b, <a class="code" href="namespace_f_i_x.html#a8619f038aa9cf800e7d4d7c6636dd1ab">RESET_ON_LOGOUT</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a3ba7fef0b811ece9aef22ba542dadb2d">getResetOnLogout</a>(), url );
<a name="l00580"></a>00580     showRow( b, <a class="code" href="namespace_f_i_x.html#adb1f0aaf19a81325a430c9913a80d2da">RESET_ON_DISCONNECT</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#aa90797aaa687bcd038d277493da99b2f">getResetOnDisconnect</a>(), url );
<a name="l00581"></a>00581     showRow( b, <a class="code" href="namespace_f_i_x.html#a7fd943dc690440715eec47c3b0bd9e57">REFRESH_ON_LOGON</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#af16c2c4f75759be8ec122ceeb01b55b9">getRefreshOnLogon</a>(), url );
<a name="l00582"></a>00582     showRow( b, <a class="code" href="namespace_f_i_x.html#af2c177a44b06f2e0f5084bc68aa30a7c">MILLISECONDS_IN_TIMESTAMP</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a06b6a927bfb3a958fd70d72b89cdf2c6">getMillisecondsInTimeStamp</a>(), url );
<a name="l00583"></a>00583     showRow( b, <a class="code" href="namespace_f_i_x.html#ad5346c0154839ba30792e11d37267b0f">PERSIST_MESSAGES</a>, pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a5b378aae16f9575ba57ae60dbab2c0e5">getPersistMessages</a>(), url );
<a name="l00584"></a>00584   }
<a name="l00585"></a>00585   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00586"></a>00586   {
<a name="l00587"></a>00587     b &lt;&lt; e.what();
<a name="l00588"></a>00588   }
<a name="l00589"></a>00589 
<a name="l00590"></a>00590   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00591"></a>00591 }
<a name="l00592"></a>00592 
<a name="l00593"></a>00593 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a3bfe60a1141d2292a72ac8676292a378">HttpConnection::processResetSession</a>
<a name="l00594"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a3bfe60a1141d2292a72ac8676292a378">00594</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00595"></a>00595 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a3bfe60a1141d2292a72ac8676292a378">HttpConnection::processResetSession</a>)
<a name="l00596"></a>00596 
<a name="l00597"></a>00597   <span class="keyword">try</span>
<a name="l00598"></a>00598   {
<a name="l00599"></a>00599     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00600"></a>00600     std::string beginString = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;BeginString&quot;</span> );
<a name="l00601"></a>00601     std::string senderCompID = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SenderCompID&quot;</span> );
<a name="l00602"></a>00602     std::string targetCompID = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;TargetCompID&quot;</span> );
<a name="l00603"></a>00603     std::string sessionQualifier;
<a name="l00604"></a>00604     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;SessionQualifier&quot;</span>) )
<a name="l00605"></a>00605       sessionQualifier = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SessionQualifier&quot;</span> );
<a name="l00606"></a>00606 
<a name="l00607"></a>00607     <a class="code" href="class_f_i_x_1_1_session_i_d.html" title="Unique session id consists of BeginString, SenderCompID and TargetCompID.">SessionID</a> sessionID( beginString, senderCompID, targetCompID, sessionQualifier );
<a name="l00608"></a>00608     <a class="code" href="class_f_i_x_1_1_session.html" title="Maintains the state and implements the logic of a FIX session.">Session</a>* pSession = <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( sessionID );
<a name="l00609"></a>00609     <span class="keywordflow">if</span>( pSession == 0 ) <span class="keywordflow">throw</span> <a class="code" href="struct_f_i_x_1_1_session_not_found.html" title="Session cannot be found for specified action.">SessionNotFound</a>();
<a name="l00610"></a>00610 
<a name="l00611"></a>00611     std::string sessionUrl = <span class="stringliteral">&quot;/session&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>();
<a name="l00612"></a>00612 
<a name="l00613"></a>00613     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00614"></a>00614     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00615"></a>00615     {
<a name="l00616"></a>00616       confirm = <span class="keyword">true</span>;
<a name="l00617"></a>00617       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a63954d7e1fac4ce05c18dbaccc8ce2fa">reset</a>();
<a name="l00618"></a>00618       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00619"></a>00619     }
<a name="l00620"></a>00620 
<a name="l00621"></a>00621     <span class="keywordflow">if</span>( confirm )
<a name="l00622"></a>00622     {
<a name="l00623"></a>00623       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/session&quot;</span> &lt;&lt; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>() &lt;&lt; <span class="stringliteral">&quot;&apos;&gt;&quot;</span>;
<a name="l00624"></a>00624       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00625"></a>00625       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00626"></a>00626       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/session&quot;</span> + copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(sessionID.<a class="code" href="class_f_i_x_1_1_session_i_d.html#aa8e2d87b39879ec1df2fb330697dfff1" title="Get a string representation of the SessionID.">toString</a>()); }
<a name="l00627"></a>00627       b &lt;&lt; <span class="stringliteral">&quot; has been reset&quot;</span>;
<a name="l00628"></a>00628     }
<a name="l00629"></a>00629     <span class="keywordflow">else</span>
<a name="l00630"></a>00630     {
<a name="l00631"></a>00631       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00632"></a>00632         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00633"></a>00633         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to reset session &quot;</span>;
<a name="l00634"></a>00634         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(sessionUrl + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(sessionID.<a class="code" href="class_f_i_x_1_1_session_i_d.html#aa8e2d87b39879ec1df2fb330697dfff1" title="Get a string representation of the SessionID.">toString</a>()); }
<a name="l00635"></a>00635         b &lt;&lt; <span class="stringliteral">&quot;?&quot;</span>;
<a name="l00636"></a>00636       }
<a name="l00637"></a>00637       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00638"></a>00638         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00639"></a>00639         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;&amp;confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, reset session&quot;</span>); }
<a name="l00640"></a>00640         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00641"></a>00641         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(sessionUrl).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not reset session&quot;</span>); }
<a name="l00642"></a>00642         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00643"></a>00643       }
<a name="l00644"></a>00644     }
<a name="l00645"></a>00645   }
<a name="l00646"></a>00646   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00647"></a>00647   {
<a name="l00648"></a>00648     b &lt;&lt; e.what();
<a name="l00649"></a>00649   }
<a name="l00650"></a>00650 
<a name="l00651"></a>00651   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00652"></a>00652 }
<a name="l00653"></a>00653 
<a name="l00654"></a>00654 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#a2fe1c705c358dbb784cd8020dd778ba2">HttpConnection::processRefreshSession</a>
<a name="l00655"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a2fe1c705c358dbb784cd8020dd778ba2">00655</a> ( <span class="keyword">const</span> <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a>&amp; request, std::stringstream&amp; h, std::stringstream&amp; b )
<a name="l00656"></a>00656 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#a2fe1c705c358dbb784cd8020dd778ba2">HttpConnection::processRefreshSession</a>)
<a name="l00657"></a>00657 
<a name="l00658"></a>00658   <span class="keyword">try</span>
<a name="l00659"></a>00659   {
<a name="l00660"></a>00660     <a class="code" href="class_f_i_x_1_1_http_message.html" title="HTTP Message that implemented GET functionality.">HttpMessage</a> copy = request;
<a name="l00661"></a>00661     std::string beginString = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;BeginString&quot;</span> );
<a name="l00662"></a>00662     std::string senderCompID = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SenderCompID&quot;</span> );
<a name="l00663"></a>00663     std::string targetCompID = request.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;TargetCompID&quot;</span> );
<a name="l00664"></a>00664     std::string sessionQualifier;
<a name="l00665"></a>00665     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;SessionQualifier&quot;</span>) )
<a name="l00666"></a>00666     sessionQualifier = copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>( <span class="stringliteral">&quot;SessionQualifier&quot;</span> );
<a name="l00667"></a>00667 
<a name="l00668"></a>00668     <a class="code" href="class_f_i_x_1_1_session_i_d.html" title="Unique session id consists of BeginString, SenderCompID and TargetCompID.">SessionID</a> sessionID( beginString, senderCompID, targetCompID, sessionQualifier );
<a name="l00669"></a>00669     <a class="code" href="class_f_i_x_1_1_session.html" title="Maintains the state and implements the logic of a FIX session.">Session</a>* pSession = <a class="code" href="class_f_i_x_1_1_session.html#a7977dc1d07493cb018d8f53c7dcebdf4">Session::lookupSession</a>( sessionID );
<a name="l00670"></a>00670     <span class="keywordflow">if</span>( pSession == 0 ) <span class="keywordflow">throw</span> <a class="code" href="struct_f_i_x_1_1_session_not_found.html" title="Session cannot be found for specified action.">SessionNotFound</a>();
<a name="l00671"></a>00671 
<a name="l00672"></a>00672     std::string sessionUrl = <span class="stringliteral">&quot;/session&quot;</span> + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>();
<a name="l00673"></a>00673 
<a name="l00674"></a>00674     <span class="keywordtype">bool</span> confirm = <span class="keyword">false</span>;
<a name="l00675"></a>00675     <span class="keywordflow">if</span>( copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a09e10449ee7e56b32bc53e5421212181">hasParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) &amp;&amp; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a42824f35b7f53bf7af416f1f4a94f89d">getParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>) != <span class="stringliteral">&quot;0&quot;</span> )
<a name="l00676"></a>00676     {
<a name="l00677"></a>00677       confirm = <span class="keyword">true</span>;
<a name="l00678"></a>00678       pSession-&gt;<a class="code" href="class_f_i_x_1_1_session.html#a9112009d2f4231b2eb63c7923e76db36">refresh</a>();
<a name="l00679"></a>00679       copy.<a class="code" href="class_f_i_x_1_1_http_message.html#ae3a088170e2ca32eeb83dc202d4c3e39">removeParameter</a>(<span class="stringliteral">&quot;confirm&quot;</span>);
<a name="l00680"></a>00680     }
<a name="l00681"></a>00681 
<a name="l00682"></a>00682     <span class="keywordflow">if</span>( confirm )
<a name="l00683"></a>00683     {
<a name="l00684"></a>00684       h &lt;&lt; <span class="stringliteral">&quot;&lt;META http-equiv=&apos;refresh&apos; content=2;URL=&apos;&quot;</span> &lt;&lt; <span class="stringliteral">&quot;/session&quot;</span> &lt;&lt; copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>() &lt;&lt; <span class="stringliteral">&quot;&apos;&gt;&quot;</span>;
<a name="l00685"></a>00685       <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00686"></a>00686       <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00687"></a>00687       { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(<span class="stringliteral">&quot;/session&quot;</span> + copy.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(sessionID.<a class="code" href="class_f_i_x_1_1_session_i_d.html#aa8e2d87b39879ec1df2fb330697dfff1" title="Get a string representation of the SessionID.">toString</a>()); }
<a name="l00688"></a>00688       b &lt;&lt; <span class="stringliteral">&quot; has been refreshed&quot;</span>;
<a name="l00689"></a>00689     }
<a name="l00690"></a>00690     <span class="keywordflow">else</span>
<a name="l00691"></a>00691     {
<a name="l00692"></a>00692       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00693"></a>00693         <a class="code" href="class_h_t_m_l_1_1_h2.html">H2</a> h2(b); h2.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00694"></a>00694         b &lt;&lt; <span class="stringliteral">&quot;Are you sure you want to refresh session &quot;</span>;
<a name="l00695"></a>00695         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(sessionUrl + request.<a class="code" href="class_f_i_x_1_1_http_message.html#a57afc05d69b0dd95a7dae328a4e8b685">getParameterString</a>()).text(sessionID.<a class="code" href="class_f_i_x_1_1_session_i_d.html#aa8e2d87b39879ec1df2fb330697dfff1" title="Get a string representation of the SessionID.">toString</a>()); }
<a name="l00696"></a>00696         b &lt;&lt; <span class="stringliteral">&quot;?&quot;</span>;
<a name="l00697"></a>00697       }
<a name="l00698"></a>00698       { <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(b); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00699"></a>00699         b &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00700"></a>00700         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(request.<a class="code" href="class_f_i_x_1_1_http_message.html#a0aee32c2c03aced311f91353bbdc410e" title="Get a string representation of the message.">toString</a>() + <span class="stringliteral">&quot;&amp;confirm=1&quot;</span>).text(<span class="stringliteral">&quot;YES, refresh session&quot;</span>); }
<a name="l00701"></a>00701         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a> &lt;&lt; <span class="stringliteral">&quot;[&quot;</span>;
<a name="l00702"></a>00702         { <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(b); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(sessionUrl).<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(<span class="stringliteral">&quot;NO, do not refresh session&quot;</span>); }
<a name="l00703"></a>00703         b &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00704"></a>00704       }
<a name="l00705"></a>00705     }
<a name="l00706"></a>00706   }
<a name="l00707"></a>00707   <span class="keywordflow">catch</span>( std::exception&amp; e )
<a name="l00708"></a>00708   {
<a name="l00709"></a>00709     b &lt;&lt; e.what();
<a name="l00710"></a>00710   }
<a name="l00711"></a>00711 
<a name="l00712"></a>00712   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00713"></a>00713 }
<a name="l00714"></a>00714 
<a name="l00715"></a>00715 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>
<a name="l00716"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">00716</a> ( std::stringstream&amp; s, <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">bool</span> value, <span class="keyword">const</span> std::string&amp; url )
<a name="l00717"></a>00717 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>)
<a name="l00718"></a>00718 
<a name="l00719"></a>00719     { <a class="code" href="class_h_t_m_l_1_1_t_r.html">TR</a> tr(s); tr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00720"></a>00720       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(name); }
<a name="l00721"></a>00721       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(value ? <span class="stringliteral">&quot;yes&quot;</span> : <span class="stringliteral">&quot;no&quot;</span>); }
<a name="l00722"></a>00722       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00723"></a>00723         <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(s); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00724"></a>00724         <span class="keywordflow">if</span>( url.size() )
<a name="l00725"></a>00725         {
<a name="l00726"></a>00726           std::stringstream href;
<a name="l00727"></a>00727           href &lt;&lt; url &lt;&lt; <span class="stringliteral">&quot;&amp;&quot;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;=&quot;</span> &lt;&lt; !value;
<a name="l00728"></a>00728           <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(s); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href.str()).text(<span class="stringliteral">&quot;toggle&quot;</span>);
<a name="l00729"></a>00729         }
<a name="l00730"></a>00730       }
<a name="l00731"></a>00731     }
<a name="l00732"></a>00732 
<a name="l00733"></a>00733   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00734"></a>00734 }
<a name="l00735"></a>00735 
<a name="l00736"></a>00736 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>
<a name="l00737"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#ad6ca7b327e45c195c9510ec8e56f60e6">00737</a> ( std::stringstream&amp; s, <span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string&amp; value, <span class="keyword">const</span> std::string&amp; url )
<a name="l00738"></a>00738 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>)
<a name="l00739"></a>00739 
<a name="l00740"></a>00740     { <a class="code" href="class_h_t_m_l_1_1_t_r.html">TR</a> tr(s); tr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00741"></a>00741       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(name); }
<a name="l00742"></a>00742       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(value); }
<a name="l00743"></a>00743       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00744"></a>00744         <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(s); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00745"></a>00745       }
<a name="l00746"></a>00746     }
<a name="l00747"></a>00747 
<a name="l00748"></a>00748   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00749"></a>00749 }
<a name="l00750"></a>00750 
<a name="l00751"></a>00751 <span class="keywordtype">void</span> <a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>
<a name="l00752"></a><a class="code" href="class_f_i_x_1_1_http_connection.html#a80788fcfafca11c66da248ee6921e7cc">00752</a> ( std::stringstream&amp; s, <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span> value, <span class="keyword">const</span> std::string&amp; url )
<a name="l00753"></a>00753 { <a class="code" href="_call_stack_8h.html#a3b1ffd24ab4b24161008f4867150f4c8">QF_STACK_PUSH</a>(<a class="code" href="class_f_i_x_1_1_http_connection.html#adfd8deb45d0f3f1b73d34a0a6c7e73fd">HttpConnection::showRow</a>)
<a name="l00754"></a>00754 
<a name="l00755"></a>00755     { <a class="code" href="class_h_t_m_l_1_1_t_r.html">TR</a> tr(s); tr.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00756"></a>00756       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(name); }
<a name="l00757"></a>00757       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>(value); }
<a name="l00758"></a>00758       { <a class="code" href="class_h_t_m_l_1_1_t_d.html">TD</a> td(s); td.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00759"></a>00759         <a class="code" href="class_h_t_m_l_1_1_c_e_n_t_e_r.html">CENTER</a> center(s); center.<a class="code" href="class_h_t_m_l_1_1_t_a_g.html#a02877131a249e6f23238b309712f6a77">text</a>();
<a name="l00760"></a>00760         {
<a name="l00761"></a>00761           std::stringstream href;
<a name="l00762"></a>00762           href &lt;&lt; url &lt;&lt; <span class="stringliteral">&quot;&amp;&quot;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;=&quot;</span> &lt;&lt; value - 10;
<a name="l00763"></a>00763           <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(s); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href.str()).text(<span class="stringliteral">&quot;&lt;&lt;&quot;</span>);
<a name="l00764"></a>00764         }
<a name="l00765"></a>00765         s &lt;&lt; <a class="code" href="namespace_h_t_m_l.html#a1e1d6fcbc90cf2d686994e175e4173f1">NBSP</a>;
<a name="l00766"></a>00766         {
<a name="l00767"></a>00767           std::stringstream href;
<a name="l00768"></a>00768           href &lt;&lt; url &lt;&lt; <span class="stringliteral">&quot;&amp;&quot;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;=&quot;</span> &lt;&lt; value - 1;
<a name="l00769"></a>00769           <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(s); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href.str()).text(<span class="stringliteral">&quot;&lt;&quot;</span>);
<a name="l00770"></a>00770         }
<a name="l00771"></a>00771         s &lt;&lt; NBSP &lt;&lt; <span class="stringliteral">&quot;|&quot;</span> &lt;&lt; NBSP;
<a name="l00772"></a>00772         {
<a name="l00773"></a>00773           std::stringstream href;
<a name="l00774"></a>00774           href &lt;&lt; url &lt;&lt; <span class="stringliteral">&quot;&amp;&quot;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;=&quot;</span> &lt;&lt; value + 1;
<a name="l00775"></a>00775           <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(s); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href.str()).text(<span class="stringliteral">&quot;&gt;&quot;</span>);
<a name="l00776"></a>00776         }
<a name="l00777"></a>00777         s &lt;&lt; NBSP;
<a name="l00778"></a>00778         {
<a name="l00779"></a>00779           std::stringstream href;
<a name="l00780"></a>00780           href &lt;&lt; url &lt;&lt; <span class="stringliteral">&quot;&amp;&quot;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;=&quot;</span> &lt;&lt; value + 10;
<a name="l00781"></a>00781           <a class="code" href="class_h_t_m_l_1_1_a.html">A</a> a(s); a.<a class="code" href="class_h_t_m_l_1_1_a.html#a90ef4321e4f259c13e86d8884084300f">href</a>(href.str()).text(<span class="stringliteral">&quot;&gt;&gt;&quot;</span>);
<a name="l00782"></a>00782         }
<a name="l00783"></a>00783       }
<a name="l00784"></a>00784     }
<a name="l00785"></a>00785 
<a name="l00786"></a>00786   <a class="code" href="_call_stack_8h.html#ac6b0115ca0a0988c881219c711c9c57e">QF_STACK_POP</a>
<a name="l00787"></a>00787 }
<a name="l00788"></a>00788 
<a name="l00789"></a>00789 } <span class="comment">// namespace FIX</span>
</pre></div></div>
<hr><address><small>
Generated on Mon Apr 5 20:59:50 2010 for QuickFIX by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53>
</a> 1.6.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>