forked from maekitalo/cxxtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
14921 lines (10879 loc) · 644 KB
/
ChangeLog
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
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2017-02-24 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serviceregistry.h: add missing includes in
service registry
2017-02-22 Tommi Mäkitalo <[email protected]>
* src/json/rpcclient.cpp: make setting ssl just a little nicer.
2017-02-21 Tommi Mäkitalo <[email protected]>
* include/cxxtools/bin/rpcserver.h,
include/cxxtools/json/rpcserver.h, include/cxxtools/net/uri.h: minor
fixes * make constructor of json and binary rpcserver with a event loop
explicit * initialize members when cxxtools::net::Uri is default constructed
2017-02-19 Tommi Mäkitalo <[email protected]>
* src/bin/rpcclient.cpp, src/http/client.cpp,
src/http/clientimpl.cpp, src/http/clientimpl.h,
src/json/rpcclient.cpp, src/tcpsocket.cpp, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: make ssl support optional with configure switch
--with-ssl=true|false
2017-02-19 Tommi Mäkitalo <[email protected]>
* : commit 8a50cb16dfda96763ab047451295a8b17668737c Author: Tommi
Mäkitalo <[email protected]> Date: Sun Feb 19 11:43:05 2017 +0100
2017-02-18 Tommi Mäkitalo <[email protected]>
* test/rpcbenchclient.cpp, test/rpcbenchserver.cpp: extend rpc
benchmark programs with support for ssl
2017-02-18 Tommi Mäkitalo <[email protected]>
* demo/rpcechoclient.cpp, demo/rpcserver.cpp,
include/cxxtools/bin/rpcclient.h, include/cxxtools/bin/rpcserver.h,
include/cxxtools/json/rpcclient.h, src/bin/rpcclient.cpp,
src/bin/rpcclientimpl.cpp, src/bin/rpcclientimpl.h,
src/bin/rpcserver.cpp, src/bin/rpcserverimpl.cpp,
src/bin/rpcserverimpl.h, src/bin/socket.cpp,
src/json/rpcclient.cpp, src/json/rpcclientimpl.cpp,
src/json/rpcclientimpl.h, test/binrpc-test.cpp: Binary rpc server
and client can use ssl now. I changed the api a bit. The ssl flag
is now passed with a separate method in json rpc and binary rpc.
Also the domain in binary rpc is moved to a separate method instead
of optional parameter to the constructor.
2017-02-18 Tommi Mäkitalo <[email protected]>
* demo/rpcserver.cpp, include/cxxtools/json/rpcserver.h,
src/json/rpcclientimpl.cpp, src/json/rpcserver.cpp,
src/json/rpcserverimpl.cpp, src/json/rpcserverimpl.h,
src/json/socket.cpp: jsonrpc server and client can use ssl
2017-02-18 Tommi Mäkitalo <[email protected]>
* demo/rpcserver.cpp, include/cxxtools/http/server.h,
src/http/server.cpp, src/http/serverimpl.cpp,
src/http/serverimpl.h, src/http/serverimplbase.h: use std::string
instead of const char* to pass certificates to http server.
2017-02-18 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/http/serverimpl.h,
src/http/socket.cpp, src/tcpsocket.cpp, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: Ssl certificates can be loaded and are used.
The http client can talk with the server https. This is tested with
the demos rpcserver and rpcechoclient.
2017-02-17 Tommi Mäkitalo <[email protected]>
* demo/rpcechoclient.cpp, demo/rpcserver.cpp: add ssl feature to rpc
demos
2017-02-17 Tommi Mäkitalo <[email protected]>
* include/cxxtools/http/server.h, src/http/server.cpp,
src/http/serverimpl.cpp, src/http/serverimpl.h,
src/http/serverimplbase.h: Implement loading certificate to http
server. The certificate is not used yet so https is not yet ready.
2017-02-15 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/tcpsocket.cpp,
src/tcpsocketimpl.cpp, src/tcpsocketimpl.h: implement methods for
loading ssl certificates into a tcp socket
2017-02-13 Tommi Mäkitalo <[email protected]>
* src/tcpsocketimpl.cpp: fix checking connection in tcp client was
broken since extending failure checking
2017-02-13 Tommi Mäkitalo <[email protected]>
* src/deserializer.cpp, src/timer.cpp: remove 2 unused variables
2017-02-10 Tommi Mäkitalo <[email protected]>
* include/cxxtools/csvdeserializer.h,
include/cxxtools/xmlrpc/client.h,
include/cxxtools/xmlrpc/formatter.h,
include/cxxtools/xmlrpc/responder.h,
include/cxxtools/xmlrpc/scanner.h,
include/cxxtools/xmlrpc/service.h, src/csvdeserializer.cpp,
src/xmlrpc/client.cpp, src/xmlrpc/formatter.cpp,
src/xmlrpc/responder.cpp, src/xmlrpc/scanner.cpp,
src/xmlrpc/service.cpp: fix file mode for some all files
2017-02-03 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/tcpsocket.cpp,
src/tcpsocketimpl.cpp, src/tcpsocketimpl.h: fixe syncronous mode of
ssl in tcp socket
2017-02-03 Tommi Mäkitalo <[email protected]>
* include/cxxtools/json/rpcclient.h, src/json/rpcclient.cpp,
src/json/rpcclientimpl.cpp, src/json/rpcclientimpl.h: json rpc
client can use ssl
2017-02-03 Tommi Mäkitalo <[email protected]>
* demo/httpclient.cpp, include/cxxtools/http/client.h,
include/cxxtools/json/httpclient.h,
include/cxxtools/xmlrpc/httpclient.h, src/http/client.cpp,
src/http/clientimpl.cpp, src/http/clientimpl.h,
src/json/httpclient.cpp, src/json/httpclientimpl.h,
src/xmlrpc/httpclient.cpp, src/xmlrpc/httpclientimpl.h: http clients
can use https
2017-02-02 Tommi Mäkitalo <[email protected]>
* src/tcpsocketimpl.cpp: * set end of file flag correctly in ssl mode of tcpsocket * add some more logging to tcpsocket
2017-02-01 Tommi Mäkitalo <[email protected]>
* src/tcpsocketimpl.cpp, src/tcpsocketimpl.h: ssl read and write
implemented; ssl client mode works now tested against tntnet
2017-02-01 Tommi Mäkitalo <[email protected]>
* demo/netcat.cpp, src/tcpsocketimpl.cpp: fix ssl connection in
blocking mode
2017-02-01 Tommi Mäkitalo <[email protected]>
* demo/netcat.cpp, src/http/clientimpl.h, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: some fixes in ssl error checking (unfinished)
add ssl to netcat demo to test ssl
2017-02-01 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/tcpsocket.cpp,
src/tcpsocketimpl.cpp, src/tcpsocketimpl.h: ssl accept, connect and
shutdown are implemented but not yet tested
2017-02-01 Tommi Mäkitalo <[email protected]>
* configure.ac, src/Makefile.am: add link flag to openssl libraries
2017-01-31 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: continued implementing ssl
2017-01-30 Tommi Mäkitalo <[email protected]>
* src/tcpsocketimpl.cpp: add ssl error check function
2017-01-30 Tommi Mäkitalo <[email protected]>
* : commit ea949d77952cde2e3145544419f8318331151626 Author: Tommi
Mäkitalo <[email protected]> Date: Mon Jan 30 09:37:43 2017 +0100
2017-01-29 Tommi Mäkitalo <[email protected]>
* configure.ac, include/cxxtools/net/tcpsocket.h,
src/tcpsocket.cpp, src/tcpsocketimpl.cpp, src/tcpsocketimpl.h:
continue implementing ssl
2017-01-26 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpstream.h, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: more preparation for ssl
2017-01-24 Tommi Mäkitalo <[email protected]>
* include/cxxtools/query_params.h, test/query_params-test.cpp: Bring
back method cxxtools::QueryParams::getNames. The method was lost
when the class was simplified.
2017-01-24 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/tcpsocket.cpp,
src/tcpsocketimpl.cpp, src/tcpsocketimpl.h: change ssl interface
2017-01-24 Tommi Mäkitalo <[email protected]>
* src/jsonparser.cpp: throw right exception type in json parser
(JsonParserError instead of SerializationError)
2017-01-24 Tommi Mäkitalo <[email protected]>
* src/jsonparser.cpp: throw right exception type in json parser
(JsonParserError instead of SerializationError)
2017-01-23 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpsocket.h, src/iodeviceimpl.cpp,
src/iodeviceimpl.h, src/tcpsocket.cpp, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: implement interface for ssl (without
functionality)
2017-01-20 Tommi Mäkitalo <[email protected]>
* src/iodeviceimpl.cpp, src/tcpsocketimpl.cpp, src/tcpsocketimpl.h:
Always use send when writing to a network socket. Send has the
ability to suppress SIGPIPE when the peer closes the connection.
The TcpSocket class may have used write sometimes in which case the
program gets a SIGPIPE, which by default stops the process. Also
dumping read data from and written data to a socket is now logged
with lower severity (FINER).
2017-01-19 Tommi Mäkitalo <[email protected]>
* demo/Makefile.am, demo/README, demo/saml2.cpp: Add demo for
creating xml.
2017-01-19 Tommi Mäkitalo <[email protected]>
* include/cxxtools/net/tcpstream.h, src/tcpstream.cpp: TcpStream
class should use a extendable streambuffer. This is really a must if
asyncronous communication is used since writing otherwise may block.
2017-01-19 Tommi Mäkitalo <[email protected]>
* include/cxxtools/iostream.h, src/iostream.cpp: remove extend flag
from cxxtools::IStream since the flag affects only the output
buffer.
2017-01-19 Tommi Mäkitalo <[email protected]>
* src/streambuffer.cpp: Fix extending streambuffer in async mode.
Befor replacing the buffer while write operation is pending the
write must be finished and restarted after replacement.
2017-01-19 Tommi Mäkitalo <[email protected]>
* src/jsonformatter.cpp: change logging category for json formatter
to match other json objects
2017-01-16 Tommi Mäkitalo <[email protected]>
* demo/Makefile.am, demo/cgi.cpp: xml changes: remove demo for
xmltag also
2017-01-16 Tommi Mäkitalo <[email protected]>
* src/Makefile.am, src/xmltag.cpp: xml change: forgot to remove
xmltag.cpp also
2017-01-16 Tommi Mäkitalo <[email protected]>
* include/cxxtools/split.h: make cxxtools::split more efficient by
avoiding string copies
2017-01-16 Tommi Mäkitalo <[email protected]>
* include/cxxtools/date.h, src/date.cpp: add some format codes to
cxxtools::Date to match cxxtools::DateTime
2017-01-16 Tommi Mäkitalo <[email protected]>
* include/cxxtools/xml/attribute.h: add support xml date, time and
datetime format in xml attributes
2017-01-16 Tommi Mäkitalo <[email protected]>
* include/Makefile.am, include/cxxtools/xml/xmlwriter.h,
include/cxxtools/xmltag.h, src/xml/xmlwriter.cpp: Xml writer
changes: * add missing header cxxtools/xml/attribute.h * remove obsolete header cxxtools/xml/xmltag.h * indent attributes in xml when requested indentation
2017-01-16 Tommi Mäkitalo <[email protected]>
* include/cxxtools/xml/attribute.h,
include/cxxtools/xml/startelement.h,
include/cxxtools/xml/xmlwriter.h, src/xml/entityresolver.cpp,
src/xml/xmlwriter.cpp: Improvements in Xml writer. * Create helper class cxxtools::xml::XmlWriter::Entity which creates
a xml node with its constructor and destuctor. * Simplification and optimization in xml entity resolver
2017-01-11 Tommi Mäkitalo <[email protected]>
* src/tcpsocketimpl.cpp: Fix checking for connection errors in
tcpsocket. Check was broken for async mode after improvement of
error messages.
2016-12-08 Tommi Mäkitalo <[email protected]>
* include/cxxtools/remoteprocedure.h, utils/remoteprocedure.pl: last
commit was not complete - this fixes another compile error in
remoteprocedure in C++11 mode
2016-12-08 Tommi Mäkitalo <[email protected]>
* include/cxxtools/remoteprocedure.h, utils/remoteprocedure.pl: fix
compile error in remoteprocedure without arguments in C++11
2016-12-07 Tommi Mäkitalo <[email protected]>
* : commit e0b7d1889500af895a7c610a83075406eed00908 Author: Tommi
Mäkitalo <[email protected]> Date: Fri Dec 2 08:46:48 2016 +0100
2016-12-02 Tommi Mäkitalo <[email protected]>
* demo/hd.cpp, include/cxxtools/hdstream.h, src/iodeviceimpl.cpp,
src/tcpsocketimpl.cpp: new class cxxtools::HexDump, which makes
outputting hex dumps to std::ostream a little more efficient
2016-11-23 Tommi Mäkitalo <[email protected]>
* src/json/httpclient.cpp, src/xmlrpc/client.cpp: Fix possible crash
in xmlrpc client and json client. The client crashes when a default
constructed client is passed to a remote procedure and then
destructed.
2016-11-10 Tommi Mäkitalo <[email protected]>
* include/cxxtools/eventloop.h, src/eventloop.cpp: add idle signal
to event loop
2016-11-07 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, src/serializationinfo.cpp:
make serialization of SerializationInfo nicer
2016-11-06 Tommi Mäkitalo <[email protected]>
* : commit 7087fdf9ef6cf2233ab1e8bea0c6bd2f63255fb2 Author: Tommi
Mäkitalo <[email protected]> Date: Sun Nov 6 23:47:36 2016 +0100
2016-11-06 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, src/serializationinfo.cpp:
Fix serialization of SerializationInfo. Serialization must not
change the name of the target SerializationInfo.
2016-10-25 Tommi Mäkitalo <[email protected]>
* include/cxxtools/iniparser.h, include/cxxtools/join.h,
include/cxxtools/posix/daemonize.h, include/cxxtools/posix/exec.h,
include/cxxtools/thread.h: add missing include guards to some
headers
2016-09-23 Michal Vyskocil <[email protected]>
* include/cxxtools/pool.h: add missing guard to pool.h
2016-09-22 Tommi Mäkitalo <[email protected]>
* demo/msgclient.cpp, demo/msgserver.cpp, src/tcpsocketimpl.cpp,
src/tcpsocketimpl.h: improve error message when trying to connect a
tcp socket
2016-09-21 Tommi Mäkitalo <[email protected]>
* include/cxxtools/convert.h: fix prototypes for convert functions
for long longs
2016-09-20 Tommi Mäkitalo <[email protected]>
* src/tcpserverimpl.cpp: improve debug output of tcpserver when
failing to create socket for a addr entry
2016-09-19 Tommi Mäkitalo <[email protected]>
* include/cxxtools/clock.h, include/cxxtools/datetime.h,
include/cxxtools/timer.h, src/clock.cpp, src/clockimpl.cpp,
src/clockimpl.h, src/datetime.cpp, src/timer.cpp: extend
cxxtools::Timer by a signal, which passes the due date of the timer
2016-09-19 Tommi Mäkitalo <[email protected]>
* : commit 5695762441295109c3075f510535fd6ee7227e6e Author: Tommi
Mäkitalo <[email protected]> Date: Mon Sep 19 14:16:01 2016 +0200
2016-09-19 Tommi Mäkitalo <[email protected]>
* src/addrinfo.cpp: fix crash when trying to copy an empty AddrInfo
object
2016-09-16 Tommi Mäkitalo <[email protected]>
* include/cxxtools/xml/xmldeserializer.h: add missing include
2016-09-02 Tommi Mäkitalo <[email protected]>
* src/timer.cpp: Remove warning about no configured selector when
starting timer. Adding a warning when starting a timer was not such a good idea. It
is quite normal to start a timer and setting the selector after
that. It happens e.g. in the http server.
2016-09-02 Tommi Mäkitalo <[email protected]>
* src/bin/socket.h, src/json/socket.h: remove unused headers
2016-09-02 Tommi Mäkitalo <[email protected]>
* src/http/serverimpl.cpp: fix potential memory leak
2016-08-26 Tommi Mäkitalo <[email protected]>
* include/cxxtools/bin/parser.h, src/bin/formatter.cpp,
src/bin/parser.cpp, src/bin/responder.cpp,
src/bin/rpcclientimpl.cpp, src/bin/scanner.cpp, src/bin/scanner.h:
Fix in binary rpc client and server Handling of dictionary was wrong when multiple requests were
executed. The parser needs to be reinitialized between calls.
2016-08-25 Tommi Mäkitalo <[email protected]>
* include/cxxtools/convert.h: fix (workaround) a rounding problem in
cxxtools::convert when converting long double to string
2016-08-10 Tommi Mäkitalo <[email protected]>
* test/.gitignore: ignore generated "logbench" in git
2016-08-11 Tommi Mäkitalo <[email protected]>
* src/base64codec.cpp: add missing include in base64codec.cpp
2016-08-10 Tommi Mäkitalo <[email protected]>
* test/binrpc-test.cpp, test/jsonrpc-test.cpp,
test/jsonrpchttp-test.cpp, test/xmlrpc-test.cpp,
test/xmlrpccallback-test.cpp: make listen ip configurable in
unittest using env var UTEST_LISTEN listen port was already
configurable with env var UTEST_PORT
2016-08-10 Tommi Mäkitalo <[email protected]>
* src/xml/xmlreader.cpp: allow char '>' in xml data
2016-04-13 Tommi Mäkitalo <[email protected]>
* demo/.gitignore, demo/Makefile.am, demo/commandoutput.cpp,
demo/execLs.cpp, include/cxxtools/posix/commandinput.h,
include/cxxtools/posix/commandoutput.h,
include/cxxtools/posix/exec.h: simplify class cxxtools::Exec
2016-04-06 Tommi Mäkitalo <[email protected]>
* src/timer.cpp: add warning log when starting timer without
selector
2016-04-04 Tommi Mäkitalo <[email protected]>
* src/timespan.cpp: interpret a string "<number>mil..." as
milliseconds instead of minutes in cxxtools::Timespan
2016-03-20 Tommi Mäkitalo <[email protected]>
* src/deserializer.cpp, src/xmlrpc/scanner.cpp: fix possible crash
on invalid xml in xmlrpc server do not allow to underrun member
scanner if too many calls to leaveMember in deserializer
2016-03-08 Tommi Mäkitalo <[email protected]>
* src/timespan.cpp: Fix deserializing timestamp: On unknown unit the
just the number is used. Previously the timestamp was set to 0.
2016-03-03 Tommi Mäkitalo <[email protected]>
* include/cxxtools/iodevice.h, include/cxxtools/streambuffer.h,
src/iodevice.cpp, src/iodeviceimpl.cpp, src/streambuffer.cpp,
src/tcpsocketimpl.cpp: some improvements in cxxtools::StreamBuffer
and IODevice: * in cxxtools::StreamBuffer on beginWrite do nothing if already
writing instead of discard and rewrite * add documentation in cxxtools::StreamBuffer * log debug output as hex dump if something is written to a device
2016-01-28 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp: changes to
cxxtools::MimeEntity: * new method readBody for reading entity body from input stream * decode data according to content transfer encoding when reading
entity body
2016-01-24 Tommi Mäkitalo <[email protected]>
* .gitignore, demo/Makefile.am, demo/mimemultipart.cpp,
include/cxxtools/mime.h, src/mime.cpp: simplify creatating complex
mime multipart objects with sub objects.
2016-01-21 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h: add missing include guards in
cxxtools/mime.h
2016-01-21 Tommi Mäkitalo <[email protected]>
* src/mime.cpp: fix parsing mime multipart * allow boundary in quotes
2016-01-17 Tommi Mäkitalo <[email protected]>
* src/mime.cpp: add missing header (github issue #11)
2016-01-17 Tommi Mäkitalo <[email protected]>
* src/regex.cpp: fix calculating offsets when regular expressions
with offset is processed (cxxtools::Regex::matchp)
2016-01-14 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h: fix setting type of mime multipart object
2016-01-11 Tommi Mäkitalo <[email protected]>
* src/quotedprintablecodec.cpp: fix compiler warning due to strange
loop condition.
2016-01-11 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp, test/Makefile.am,
test/mime-test.cpp: make mime classes serializable and add some unit
tests
2016-01-11 Tommi Mäkitalo <[email protected]>
* demo/mime2json.cpp, demo/mimeextract.cpp,
include/cxxtools/mime.h, src/mime.cpp: rename cxxtools::MimeObject
to cxxtools::MimeEntity and add some documentation. "Entity" is the phrase, which is used in the rfc.
2016-01-10 Tommi Mäkitalo <[email protected]>
* demo/.gitignore, demo/Makefile.am, demo/mimeextract.cpp: add demo
to extract parts from a mime/multipart message
2016-01-10 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp: Add constructor to parse
mime/multipart messages from a std::istream
2016-01-08 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp: remove 2 methods from
cxxtools::MimeMultipart to resolve abiguouty
2016-01-08 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h: add some stl container style methods to
cxxtools::MimeMultipart
2016-01-08 Tommi Mäkitalo <[email protected]>
* src/mime.cpp: fix cxxtools::MimeMultipart::addObject - forgot to
set the body
2016-01-07 Tommi Mäkitalo <[email protected]>
* demo/Makefile.am, demo/mime2json.cpp, demo/multipart2json.cpp,
src/mime.cpp: improve mime multipart demo Read not only mime multipart messages but all mime objects. Add
some documentation to the demo.
2016-01-07 Tommi Mäkitalo <[email protected]>
* demo/.gitignore: update .gitignore
2016-01-07 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp: fix parsing mime/multipart
messages (was broken after reworking api)
2016-01-07 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp,
src/quotedprintablecodec.cpp, test/quotedprintable-test.cpp: improve
api for mime objects
2016-01-07 Tommi Mäkitalo <[email protected]>
* demo/mime.cpp, include/cxxtools/mime.h, src/base64codec.cpp: limit
line width of base64 encoder to 76 characters
2016-01-07 Tommi Mäkitalo <[email protected]>
* demo/Makefile.am, demo/mime.cpp, demo/multipart2json.cpp,
include/cxxtools/mime.h, src/mime.cpp: rework mime multipart - first
step
2016-01-06 Tommi Mäkitalo <[email protected]>
* src/Makefile.am, src/quotedprintablestream.cpp: Last checkin was
imcomplete. Remove old quoted printable stream class also. It does
not compile any more.
2016-01-06 Tommi Mäkitalo <[email protected]>
* include/cxxtools/quotedprintablestream.h,
test/quotedprintable-test.cpp: replace old quoted printable
implementation with new quoted printable codec
2016-01-06 Tommi Mäkitalo <[email protected]>
* include/Makefile.am, include/cxxtools/quotedprintablecodec.h,
src/Makefile.am, src/quotedprintablecodec.cpp,
test/quotedprintable-test.cpp: Implement a codec for quoted
printable
2016-01-06 Tommi Mäkitalo <[email protected]>
* src/base64codec.cpp: fix base64 codec The codec needs to consume always at least one byte or write one
byte in every step. Otherwise it may stop in some cicumstances.
2016-01-05 Tommi Mäkitalo <[email protected]>
* include/cxxtools/base64codec.h: remove unused #include
2016-01-05 Tommi Mäkitalo <[email protected]>
* src/base64codec.cpp, test/base64-test.cpp: accept white space in
base64 encoded data when decoding it
2016-01-02 Tommi Mäkitalo <[email protected]>
* src/mime.cpp: fix cxxtools::Mime Mime objects has a line delimiter CRLF instead of just LF
2015-12-30 Tommi Mäkitalo <[email protected]>
* include/cxxtools/mime.h, src/mime.cpp: small changes in
cxxtools::Mime class Fix specification of charset. Do not output multipart mime object
if only one part is found. Small usability improvements.
2015-12-18 Tommi Mäkitalo <[email protected]>
* src/serializationinfo.cpp: Fix move constructor of
cxxtools::SerializationInfo We cannot just move the byte pattern of a std::string. It mostly
works but it depends on the implementation of std::string.
2015-12-02 Tommi Mäkitalo <[email protected]>
* src/utf8codec.cpp, test/utf8-test.cpp: fix bug where json
deserializer may hang when processing a byte order mark
2015-12-02 Tommi Mäkitalo <[email protected]>
* include/cxxtools/eventloop.h, include/cxxtools/eventsink.h,
src/eventloop.cpp, src/eventsink.cpp, test/Makefile.am,
test/eventloop-test.cpp: implement priority events, which overtake
non priority events
2015-11-30 Tommi Mäkitalo <[email protected]>
* include/cxxtools/eventloop.h, src/eventloop.cpp: impl
cxxtools::EventLoop for better binary compatibility in future
releases
2015-11-25 Tommi Mäkitalo <[email protected]>
* include/cxxtools/log/cxxtools.h, src/log.cpp,
test/logconfiguration-test.cpp: allow setting log level using string
notation in cxxtools::LogConfiguration
2015-11-20 Tommi Mäkitalo <[email protected]>
* src/xml/xmlreader.cpp, test/xmlreader-test.cpp: allow colon in tag
names to parse xml name spaces and add some debug messages into xml
parser
2015-11-18 Tommi Mäkitalo <[email protected]>
* include/cxxtools/timespan.h, src/timespan.cpp,
test/timespan-test.cpp: improve serialization and istream support in
cxxtools::Timespan Units are now read from istream. Reading a WeakTimespan from just number or deserialization from just
number defaults to the units of the WeakTimespan, e.g. reading or
deserialization of "42" to cxxtools::Seconds is now really 42
seconds but reading "42h" means 42 days even when cxxtools::Seconds
are read.
2015-10-21 Tommi Mäkitalo <[email protected]>
* include/cxxtools/convert.h, include/cxxtools/timespan.h,
src/timespan.cpp, test/timespan-test.cpp: improve serialization and
output of cxxtools::Timespan
2015-10-09 Tommi Mäkitalo <[email protected]>
* include/cxxtools/deserializer.h: make deserialize method in
deserializer const
2015-10-07 Tommi Mäkitalo <[email protected]>
* include/cxxtools/eventloop.h, include/cxxtools/eventsink.h,
src/eventloop.cpp, src/eventsink.cpp: implement queueEvent in event
loop, which was documented but missing
2015-10-06 Tommi Mäkitalo <[email protected]>
* include/cxxtools/jsonparser.h, src/jsonparser.cpp,
test/jsondeserializer-test.cpp: accept trailing comma in json arrays
and objects
2015-10-01 Tommi Mäkitalo <[email protected]>
* test/properties-test.cpp: add some more test cases to properties
deserializer test
2015-10-01 Tommi Mäkitalo <[email protected]>
* src/timer.cpp: fix overflow in timer initialization
2015-10-01 Tommi Mäkitalo <[email protected]>
* src/propertiesserializer.cpp: small fix in propertiesserializer:
name of array was not serialized when it was a member
2015-10-01 Tommi Mäkitalo <[email protected]>
* include/cxxtools/csvformatter.h,
include/cxxtools/csvserializer.h, src/csvformatter.cpp,
test/csvserializer-test.cpp: allow multichar delimiter in
csvserializer
2015-10-01 Tommi Mäkitalo <[email protected]>
* include/cxxtools/propertiesparser.h,
src/propertiesdeserializer.cpp, src/propertiesparser.cpp,
test/properties-test.cpp: small fix in propertiesdeserializer When trim is enabled in propertiesdeserializer white space at the
beginning and end of a value is trimmed away. The sequence \t in a
properties file means a tab character. But this sequence should not
be stripped away. This is fixed now. Also a space, which is escaped
with '\' is not stripped away any more.
2015-09-29 Tommi Mäkitalo <[email protected]>
* src/envsubst.cpp, test/envsubst-test.cpp: small fix in envsubst
function do not remove backslashes other than when escaping '$'
2015-09-29 Tommi Mäkitalo <[email protected]>
* src/propertiesparser.cpp: minor fix in propertiesparser handle escaped characters at the beginning of a value after a key
without delimiter correctly
2015-09-29 Tommi Mäkitalo <[email protected]>
* include/cxxtools/decomposer.h, src/bin/parser.cpp,
src/xmlrpc/responder.cpp: cleanup some includes
2015-09-25 Tommi Mäkitalo <[email protected]>
* src/jsonparser.cpp: accept '_' in plain keys in json
2015-09-25 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, include/cxxtools/string.h,
src/serializationinfo.cpp, src/string.cpp: add noexcept specifier to
move constructor for possibly better optimization
2015-09-23 Tommi Mäkitalo <[email protected]>
* include/cxxtools/timer.h, src/timer.cpp: check interval time for
validity in cxxtools::Timer
2015-09-23 Tommi Mäkitalo <[email protected]>
* include/cxxtools/selector.h, src/selector.cpp,
src/selectorimpl.cpp: add new method waitTimer to Selector
2015-09-22 Tommi Mäkitalo <[email protected]>
* src/serializationinfo.cpp: prevent double delete when memory is
exhausted in SerializationInfo assignment
2015-09-22 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, src/serializationinfo.cpp:
fix memory leak in SerializationInfo
2015-09-16 Tommi Mäkitalo <[email protected]>
* src/propertiesdeserializer.cpp, src/propertiesparser.cpp,
test/properties-test.cpp: extend properties deserializer to support
more combinations of serialization keys and members
2015-09-16 Tommi Mäkitalo <[email protected]>
* cxxtools-config.in: add generator for logging properties back to
cxxtools-config
2015-09-09 Tommi Mäkitalo <[email protected]>
* include/cxxtools/unit/assertion.h: add new unit test macro
CXXTOOLS_UNIT_ASSERT_EQUALS2 which expects a output function as an
additional parameter The output function expects the value as a parmeter and must return
something, which has an output operator, e.g. a std::string.
2015-09-10 Tommi Mäkitalo <[email protected]>
* src/log.cpp: forgot to output log levels FINER and FINEST in
logger
2015-09-10 Tommi Mäkitalo <[email protected]>
* include/cxxtools/properties.h,
include/cxxtools/propertiesserializer.h,
src/propertiesserializer.cpp, test/propertiesserializer-test.cpp:
add object and array size as comment to properties in
propertiesserializer (can be switched of)
2015-09-10 Tommi Mäkitalo <[email protected]>
* src/propertiesserializer.cpp, test/propertiesserializer-test.cpp:
add comments about array and object sizes to properties in
propertiesserializer
2015-09-09 Tommi Mäkitalo <[email protected]>
* test/propertiesserializer-test.cpp: add missing file (again)
2015-09-09 Tommi Mäkitalo <[email protected]>
* src/propertiesserializer.cpp: add missing file
2015-09-09 Tommi Mäkitalo <[email protected]>
* include/Makefile.am, include/cxxtools/properties.h,
include/cxxtools/propertiesserializer.h, src/Makefile.am,
test/Makefile.am: implement propertiesserializer
2015-09-09 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h,
include/cxxtools/settings.h, src/csvparser.cpp, src/jsonparser.cpp,
src/serializationinfo.cpp, test/serializationinfo-test.cpp: cleanup
some headers
2015-09-06 Tommi Mäkitalo <[email protected]>
* ChangeLog, utils/git2changelog.pl: update ChangeLog
2015-09-06 Tommi Mäkitalo <[email protected]>
* include/cxxtools/base64codec.h, include/cxxtools/connectable.h,
include/cxxtools/delegate.h, include/cxxtools/event.h,
include/cxxtools/function.tpp, include/cxxtools/http/server.h,
include/cxxtools/posix/commandoutput.h,
include/cxxtools/selector.h, include/cxxtools/settings.h,
include/cxxtools/signal.h, include/cxxtools/unit/reporter.h,
include/cxxtools/unit/testmethod.h, include/cxxtools/xml/node.h,
src/base64codec.cpp, src/bin/rpcserverimpl.cpp, src/bin/socket.cpp,
src/charmapcodec.cpp, src/csvformatter.cpp, src/eventloop.cpp,
src/http/chunkedreader.cpp, src/http/clientimpl.cpp,
src/http/notauthenticatedresponder.cpp,
src/http/notauthenticatedservice.cpp,
src/http/notfoundresponder.cpp, src/http/parser.cpp,
src/http/responder.cpp, src/http/serverimpl.cpp,
src/http/service.cpp, src/http/socket.cpp, src/iniparser.cpp,
src/iodeviceimpl.cpp, src/json/httpclientimpl.cpp,
src/json/httpresponder.cpp, src/json/rpcserverimpl.cpp,
src/json/socket.cpp, src/jsonformatter.cpp, src/log.cpp,
src/multifstream.cpp, src/mutex.cpp, src/muteximpl.cpp,
src/muteximpl.h, src/selector.cpp, src/settingsreader.h,
src/streambuffer.cpp, src/tcpserverimpl.cpp,
src/unit/application.cpp, src/unit/jsonreporter.cpp,
src/utf8codec.cpp, src/xml/xmlformatter.cpp, src/xml/xmlreader.cpp,
src/xml/xmlwriter.cpp, src/xmlrpc/formatter.cpp,
src/xmlrpc/httpclient.cpp, src/xmlrpc/httpclientimpl.cpp,
src/xmlrpc/responder.cpp, test/binrpc-test.cpp,
test/jsondeserializer-test.cpp, test/jsonrpc-test.cpp,
test/jsonrpchttp-test.cpp, test/rpcbenchasyncclient.cpp,
test/xmlrpc-test.cpp, test/xmlrpccallback-test.cpp: fix unused
parameters warnings (not enabled by default)
2015-08-18 Tommi Mäkitalo <[email protected]>
* src/envsubst.cpp: better error message when string could not be
parsed in envsubst
2015-08-13 Tommi Mäkitalo <[email protected]>
* include/Makefile.am, include/cxxtools/unit/application.h,
include/cxxtools/unit/assertion.h,
include/cxxtools/unit/jsonreporter.h,
include/cxxtools/unit/reporter.h, include/cxxtools/unit/test.h,
include/cxxtools/unit/testmain.h,
include/cxxtools/unit/testsuite.h, src/string.cpp,
src/unit/Makefile.am, src/unit/application.cpp,
src/unit/jsonreporter.cpp, src/unit/reporter.cpp,
src/unit/test.cpp, src/unit/testcontext.cpp, test/arg-test.cpp:
Several unit test improvements * In CXXTOOLS_UNIT_ASSERT_EQUALS the expressions are evaluated just
once now. * There is a new macro CXXTOOLS_UNIT_SKIP to skip a test. * A new flag -s prints a statistic summary of the tests. * A new class cxxtools::unit::JsonReporter makes it possible to
output test results with a serializer like json. * A new flag -j or --json in unit test outputs results in json
format.
2015-08-04 Tommi Mäkitalo <[email protected]>
* src/streambuffer.cpp: optimization in StreamBuffer: beginWrite
will try to write some if already in write operation
2015-08-04 Tommi Mäkitalo <[email protected]>
* include/cxxtools/date.h, src/date.cpp, test/date-test.cpp: fix
date validation
2015-08-04 Tommi Mäkitalo <[email protected]>
* include/cxxtools/smartptr.h: remove unused parameter name from
smart pointer to remove an extended compiler warning
2015-08-04 Tommi Mäkitalo <[email protected]>
* include/cxxtools/posix/commandinput.h: pass options parameter to
for in command input class
2015-07-30 Tommi Mäkitalo <[email protected]>
* src/streambuffer.cpp: fix a bug where the streambuffer may block
when non blocking I/O is used
2015-07-29 Tommi Mäkitalo <[email protected]>
* include/cxxtools/date.h, include/cxxtools/datetime.h,
include/cxxtools/time.h, src/date.cpp, src/datetime.cpp,
src/dateutils.cpp, src/dateutils.h, src/time.cpp,
test/date-test.cpp, test/datetime-test.cpp, test/time-test.cpp:
additional date and time formats for fixed number of digits
2015-07-25 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, src/serializationinfo.cpp,
test/serializer-bench.cpp: change SerializationInfo to held a
pointer to container to subnodes instead of the container itself
2015-07-24 Tommi Mäkitalo <[email protected]>
* src/conditionimpl.cpp: wait infinitely when passing negative
timeout to queue
2015-07-21 Tommi Mäkitalo <[email protected]>
* src/log.cpp: initialize tostdout flag correctly in logger
2015-07-17 Tommi Mäkitalo <[email protected]>
* src/datetime.cpp, src/dateutils.cpp, src/dateutils.h,
src/time.cpp: limit to 3 digits when parsing milliseconds in
cxxtools::Time and cxxtools::DateTime
2015-07-17 Tommi Mäkitalo <[email protected]>
* src/date.cpp, src/datetime.cpp: fix parsing date with format code
%y: should read just 2 digits
2015-07-15 Tommi Mäkitalo <[email protected]>
* include/cxxtools/serializationinfo.h, src/serializationinfo.cpp:
Change container for subnodes in SerializationInfo from std::vector
to std::deque Adding members to SerializationInfo using addMember may result to
invalidation of previous references to the object when using
std::vector. This does not happen with std::deque. Since a deque do
not have a reserve method, the reserve method in SerializationInfo
is removed also. This results in a break in the api. If someone use
the method, just remove it. It is not needed in a deque.
2015-07-13 Tommi Mäkitalo <[email protected]>
* test/serializationinfo-test.cpp: skip range error check in
serialization info if double or float are not smaler than long
double
2015-07-12 Tommi Mäkitalo <[email protected]>
* configure.ac: update release and so number
2015-07-12 Tommi Mäkitalo <[email protected]>
* include/cxxtools/datetime.h: fix format code in documentation of
DateTime class
2015-07-11 Tommi Mäkitalo <[email protected]>
* include/cxxtools/datetime.h, src/log.cpp: implement time based
rolling of log files
2015-07-11 Tommi Mäkitalo <[email protected]>
* include/cxxtools/time.h, src/time.cpp: fix cxxtools::Time object
on 32 bit platforms Extending resolution of time object lead to overflow when long is
just 32 bit. We use uint64_t now.
2015-07-10 Tommi Mäkitalo <[email protected]>
* include/cxxtools/char.h, src/utf8codec.cpp,
test/jsondeserializer-test.cpp: fix reading multibyte utf8 sequences
from utf8 codec
2015-07-01 Tommi Mäkitalo <[email protected]>
* include/cxxtools/xml/xml.h,
include/cxxtools/xml/xmldeserializer.h, src/xml/xmldeserializer.cpp:
fix xml deserializer and add attribute prefix feature The xml deserializer forgot to read some attributes on some
circumstances. The attribute prefix feature helps distinquishing