Commit Graph

317 Commits

Author SHA1 Message Date
9ecec52f5f attempting to support thread resource in http server 2020-05-21 07:30:14 +00:00
aa5c70c3f5 added mio_dupbcstrs() and mio_dupucstrs()
changed mio_svc_htts_start() to access the main processor callback
2020-05-20 16:14:36 +00:00
f373f367b3 fixed wrong length types in mio_copy_bchars_to_bcstr() and mio_copy_uchars_to_ucstr()
fixed the wrong value defined for MIO_SKAD_TO_OOCSTR_PORT
set various environment variables before starting a cgi script
2020-05-20 14:53:05 +00:00
d95bc9bc92 in the midst of debugging http server code 2020-05-20 10:25:12 +00:00
914dd35b37 checked if a file is executable in mio_svc_htts_docgi() 2020-05-19 18:07:28 +00:00
bc615bb710 fixed bugs in http server cgi handling 2020-05-19 18:00:49 +00:00
bdaa548a4a fixed a problem of delayed handling of halted devices when there are no events and timer jobs 2020-05-19 12:09:13 +00:00
4b3bfc51fc some code cleanup 2020-05-19 09:40:03 +00:00
fc26f4a6c3 still working on cgi handling in http server 2020-05-19 09:11:39 +00:00
362ae444fc cleaning up cgi handling code in http server 2020-05-18 16:40:00 +00:00
576fc79e51 changed get_request_content_length() a bit 2020-05-18 09:12:36 +00:00
b687e97590 simplifying http server code while debugging and enhancing it 2020-05-18 08:59:25 +00:00
f6aee2c356 added a test script 2020-05-17 18:10:44 +00:00
df71944ac6 working on http server 2020-05-17 18:09:19 +00:00
1e85b73566 debugging http server's cgi handling 2020-05-16 19:52:50 +00:00
619a7dd318 quite some changes to http server code 2020-05-16 19:12:10 +00:00
98e2838edf made minor changes 2020-05-16 04:52:06 +00:00
57ca185651 changed to clear the on_write callbacks for completed write requestrs after having triggered timer callbacks collectively and also before triggering on_read() for each device
cleaned up debugging messages in dns-cli.c
experimenting with http server implementation
2020-05-15 06:18:49 +00:00
cc74d317a2 fixed some bugs 2020-05-12 17:53:19 +00:00
02a6d5db1e enhanced to maintain client sockets in the http server 2020-05-12 11:46:00 +00:00
6cb06f8b57 changed mio_exec() to kill the device if the on_write callback() returns failure. before this change, mio_exec() also returned -1, causing mio_loop() to abort 2020-05-10 16:20:39 +00:00
e2115286ec enhanced mio_dev_watch and MIO_DEV_WATCH_RENEW.
drafting resource handling code in the http server
2020-05-08 09:48:26 +00:00
89335404c8 experimenting for htts implementation 2020-05-07 15:47:33 +00:00
4282eb979a added mio_svc_htts_setservernamewithbcstr() 2020-05-07 10:10:33 +00:00
0baa0820ae added MIO_DEV_SCK_LENIENT to set on the state field of a socket device
added MIO_DEV_SCK_BIND_LENIENT to use to set MIO_DEV_SCK_LENIENT on a listening socket.
fixed some minor bugs here and there
2020-05-07 04:32:32 +00:00
b9a47faff6 reverted wrong changes in htre.c 2020-05-06 09:55:35 +00:00
e96cb2ebb4 added mio_sys_getrealtime()
writing http server
2020-05-06 09:28:36 +00:00
2df338ee9a writing the http server service 2020-05-05 15:12:08 +00:00
0087bf8b12 renamed _HEADERS to _HEADER 2020-05-04 17:51:47 +00:00
d9a7bac9f8 added path canonicalization functions 2020-05-04 08:40:05 +00:00
f6c4e55337 renamed the link fields of mio_q_t, mio_wq_t, mio_cwq_t 2020-05-03 16:02:56 +00:00
a69d2401c0 fixed a bug in killing a slave in the pro device 2020-05-01 18:56:33 +00:00
49ad401433 added some http processing code 2020-05-01 18:01:29 +00:00
a2f0fa9c7f added much more support code 2020-05-01 14:00:27 +00:00
f1aa019091 added ecs and htb 2020-04-30 16:20:31 +00:00
26b720099c made list management more consistent 2020-04-30 14:48:39 +00:00
d3a74e1075 renamed mio-sys.h to sys-prv.h 2020-04-30 02:28:09 +00:00
8cb48d5665 removed unneeded text from configure.ac 2020-04-30 02:19:50 +00:00
1e46aab4ba added mio_ipad_bytes_to_bcstr() and mio_ipad_bytes_to_ucstr() 2020-04-29 02:57:27 +00:00
ec33f042d3 minor comment changes 2020-04-28 11:33:54 +00:00
c52ce87aa4 fixed a parsing bug of a compressed domain name placed at the end of the packet 2020-04-28 11:27:24 +00:00
a0545235dd fixed wrong conditions in lib/dns.c 2020-04-28 10:27:41 +00:00
b1c205626a added mio_skad_init_for_ip_with_bytes() 2020-04-28 02:44:13 +00:00
56315ef7c5 added hash macros 2020-04-27 15:18:23 +00:00
31885f8cbf enhanced with trivial code changes 2020-04-27 14:09:47 +00:00
5e5ea2ed58 added the default mmgr 2020-04-27 04:15:11 +00:00
4aa4528d28 added mio_dev_getmio() 2020-04-27 04:11:49 +00:00
d8b1619290 minor #include fix in lib/mio-skad.h 2020-04-23 07:24:22 +00:00
1a8cb3610b added some files for future work 2020-03-03 13:47:51 +00:00
252c801544 recorded some TODO items in the comment 2020-03-03 08:49:24 +00:00
497c1b8455 fixed a commented not prefixed with dnl in configure.ac 2020-03-02 13:45:36 +00:00
1cd2510bcd defined mio_svc_dnc_send_flag_t to use with mio_svc_dnc_sendmsg() and mio_svc_dnc_sendreq() 2020-03-02 05:16:37 +00:00
b801ff6703 implemented soa rr encoding in dnc 2020-03-02 04:58:22 +00:00
aeba287690 added MIO_SVC_DNC_RESOLVE_FLAG_PREFER_TCP.
added an additional parameter 'prefer_tcp' to mio_svc_dnc_sendreq() and mio_svc_dnc_sendmsg()
2020-03-01 17:43:42 +00:00
247184282f implemented proper tcp packet reading in dnc 2020-02-29 16:56:36 +00:00
9d10edb77e some pseudo code for proper reading over dnc tcp 2020-02-28 08:10:29 +00:00
f9a0f3bc00 added some tcp transport code for dnc 2020-02-28 07:41:25 +00:00
d717c25a2b changed on_reply to on_done in dns client code
added some tcp transport code in dns client
2020-02-27 17:34:27 +00:00
72689c179b addeed some dns client code 2020-02-27 08:40:39 +00:00
71ffd4ce17 changed mio_dev_sck_connect() to not fire on_connect() callback inside itself upon immediate successful connect.
fixed some issues in dns related code
2020-02-25 07:09:20 +00:00
9ef09941c3 initialized capa to 0 in to_dn_capa() 2020-02-24 17:14:21 +00:00
8264142dbe enhanced dns packet builder to encode some rrdata 2020-02-24 16:39:29 +00:00
d98397cd1f added mio_dev_sck_setsockopt(), mio_dev_sck_getsockopt()
fixed the ssl part of the stateful socket writev method.
2020-02-23 16:11:32 +00:00
75887e4f74 adding writev support 2020-02-22 18:24:49 +00:00
052e10694d adding mio_dev_timedwritev() 2020-02-21 16:58:41 +00:00
ef50d2458b some code to implement dns over tcp in dnc 2020-02-21 09:42:10 +00:00
c620afe4c9 separated dnc code from dns.c to dns-cli.c 2020-02-21 04:21:16 +00:00
6787ee7841 updated copyright years.
attempting to support dns over tcp
2020-02-20 15:35:16 +00:00
2332d6a4e7 renamed some utility functions 2020-02-20 14:59:49 +00:00
f5f8b9e2b4 enhanced mio_equal_skads() 2020-02-20 10:07:12 +00:00
e73d822d0a added intmax formatting functions 2020-02-20 06:48:43 +00:00
e19490a505 changed to remember the server address for each dns message sent 2020-02-20 06:21:53 +00:00
3d20fc7421 reorganized and enhanced socket address functions 2020-02-20 06:00:53 +00:00
c5e8e902aa fixed a dns packet check issue in dns.c 2020-02-19 15:42:29 +00:00
73eff3822b added PTR parsing.
added string to skad conversion functions
2020-02-19 14:59:06 +00:00
51865ceaa8 deleted a duplicate definition 2020-02-19 05:46:58 +00:00
69d16b7050 fixed configure.ac regarding __uint128_t 2020-02-19 05:44:29 +00:00
ee0fe1b408 enhanced rr data parsing 2020-02-17 14:54:21 +00:00
616384b042 added nwif functions 2020-02-16 14:23:27 +00:00
201bbf20a1 added unfinished socket address functions 2020-02-16 13:59:41 +00:00
a3b2645cb7 implemented dnc resolve retries 2020-02-16 11:03:25 +00:00
5b9fb40ba5 attempting to implement retries in dnc resolve 2020-02-14 16:55:04 +00:00
20de4ae2db handled MIO_DNS_RRT_Q_ANY/MAILA/MAILB/AXFR in brief mode of dnc resolve 2020-02-14 10:13:45 +00:00
11e50cd5c8 simplified mio_svc_dnc_resolve(), mio_svc_dnc_sendreq().
changed the above and some similar functions to return mio_dns_msg_t*
changed them to accept extension space size
2020-02-14 10:06:29 +00:00
769fdb5ad2 some code touch-up in dns.c 2020-02-13 16:27:29 +00:00
4e6a1b7d85 added some code to implement dns packet parser 2020-02-13 09:31:02 +00:00
192e64b65c more code to handle rrdata 2020-02-12 15:23:36 +00:00
d0906bb8ac implemented dns domain parser in a packet 2020-02-12 10:06:05 +00:00
42fe77bde5 attempting to add a dns packet parser 2020-02-11 15:51:41 +00:00
c6e3b6204b some dns resolver code 2020-02-11 09:02:46 +00:00
89371559bb fixed wrong prefix output for %# in fmt.c 2019-11-24 08:08:08 +00:00
d95b96b34e fixed a wrong conditional in mio-prv.h 2019-11-24 05:10:55 +00:00
ec1c9ac5d0 added mio_oocu_t, mio_ucu_t, mio_bcu_t 2019-11-19 14:02:26 +00:00
2c4e247c98 added MIO_BITSOF(x) 2019-09-26 05:43:04 +00:00
29195437a7 added static assertion macros 2019-08-06 03:01:22 +00:00
2ad04e20da not useful macro reordering 2019-06-24 11:38:13 +00:00
f94280bae4 added bin/Makefile.am 2019-06-21 14:19:39 +00:00
6d357fe1fe added the _instsize field to mio_t and revised mio_getxtn() using the new field 2019-06-21 12:43:50 +00:00
86c1d9ebe6 added lib/fmt.c 2019-05-31 14:32:02 +00:00
3f60b8e4e8 refactored the formatter code 2019-05-31 14:31:40 +00:00
cff18d2067 added the bin directory and moves files for binary commands into it 2019-05-14 04:25:38 +00:00
8ed151abb6 defined MIO_BITS_PER_BYTE 2019-05-04 18:01:23 +00:00
10be482d97 added __cplusplus when determining inline availability 2019-05-03 08:42:59 +00:00
9212131997 enhanced mio_bswap16/32/64() 2019-05-03 07:36:53 +00:00
91fa13c4a5 refined some endian conversion macros with proper type casting 2019-05-03 03:20:16 +00:00
8f1c613572 redefined endian conversion routines 2019-05-02 07:55:23 +00:00
bac56f3d1d placing rdata encoding code in encode_rdata_in_dns_msg() 2019-04-13 07:23:11 +00:00
2bff2e76fe adding more dns parsing code 2019-04-13 06:04:43 +00:00
e5c82673a8 removed wrongly placed hash sign in dns.c 2019-04-12 09:39:42 +00:00
423b627cbc created the dns_msg_to_pkt() macro
schedued to wait for response only if a query has been sent
2019-04-12 07:02:04 +00:00
8f6888a47d rename mio-sck.c to sck.c, mio-proc.c to pro.c 2019-04-12 06:37:23 +00:00
0d3bebb42f fixed the mio_dev_sck_getxtn() macro 2019-04-12 05:52:33 +00:00
856d87db55 touched up main.c to support more platforms 2019-04-12 03:53:32 +00:00
265be307cd made ssl selective in main.c 2019-04-12 03:13:07 +00:00
2ec12d96eb changed mio-sck.c to ignore some eunavailable feature request 2019-04-12 02:45:35 +00:00
564af6fbaf preparing to write dns packet parser 2019-04-11 08:23:01 +00:00
a0f9b567cb enhanced the dns client code with timeout handling, id tracking, etc 2019-04-11 07:26:00 +00:00
898bf787d5 fixed the mux code using poll() 2019-04-10 09:25:34 +00:00
cc9a038760 enhanced the dns message builder function 2019-04-10 09:05:56 +00:00
92677d5129 added some experimental edns code 2019-04-09 15:24:16 +00:00
9217fcec55 some code for edns 2019-04-09 09:45:02 +00:00
9cc53fc237 added more MIO_SIZEOF_XXX_T macros.
added MIO_HAVE_BUJILTIN_CTZL/CTZLL for gcc 3.4 or later
2019-03-25 11:42:26 +00:00
6eed4425ec changed PUT_BYTE_IN_HEX() 2019-03-19 13:58:26 +00:00
d859fe00d0 renamed inconsistent function names 2019-03-19 13:30:09 +00:00
7e0ee486a5 added mio_byte_to_bcstr().
implemented k/K/w/W in the formatted output function
2019-03-18 15:32:04 +00:00
1bc418b99e included signal.h in mio-pro.c 2019-03-15 05:06:56 +00:00
c82aae920a minor change 2019-02-22 10:13:35 +00:00
a76dc94e0a renamed mio_makedev() to mio_dev_make().
added MIO_SVC_REGISTER() and MIO_SVN_UNREGISTER().
defined mio_svc_t
2019-02-22 08:44:51 +00:00
0f9eac0614 added mio_fill_uchars()/mio_fill_bchars() 2019-02-18 17:15:44 +00:00
0760dc1a04 attempt to support edns0 2019-02-16 18:22:32 +00:00
257a3f533c added the two header filess that should have been committed previously 2019-02-16 07:29:32 +00:00
f6278a4623 added the actual dns function file left out previously 2019-02-14 10:09:11 +00:00
be68e4ec80 implemented low-level dns packet maker 2019-02-14 10:08:32 +00:00
af86c6a95e more dns code 2019-02-13 10:41:33 +00:00
b40bdf3e8e added some dns code 2019-02-11 09:24:16 +00:00
3dcbd4a231 started dns protocol implementation 2019-02-08 10:13:24 +00:00
c6c51df2d3 updated project url 2019-02-01 16:44:39 +00:00
d583cf2514 redefined MEM macros 2019-01-31 13:27:37 +00:00
ac65312bf2 switched to check SSL_new instead of SSL_library_init in configure.ac
fixed a bug of not honoring precision specified with %.* in computing string length given for 's' and 'S'
renamed DEV_CAPA/dev_capa to DEV_CAP/dev_capa
2019-01-31 09:16:44 +00:00
4aa0da2011 enhanced the openssl library check in configure.ac 2019-01-30 19:07:05 +00:00
559d125874 fixed error strings.
changed time functions
2019-01-30 10:18:58 +00:00
32abb82f01 refactoring system dependent code 2019-01-29 16:57:16 +00:00
792e4da4c2 changed directory error number setting to mio_seterrxxx() calls
removed mio->renew_watch and moved it to each device by using the MIO_DEV_RENEW_REQUIRED bit
2019-01-29 08:38:12 +00:00
470e459781 fixing some bugs regarding mux update - wip 2019-01-28 17:41:50 +00:00
e9c42b28c6 more code fixes 2019-01-28 08:13:06 +00:00
e21acce5c1 more code refactoring 2019-01-27 16:22:55 +00:00
446809d7f4 unfinished refactoring 2019-01-27 02:09:22 +00:00
276d15877d wip: added some primitive system interfacing functions 2019-01-24 18:03:27 +00:00
e19231b104 wip. enhancing log and error handling support 2019-01-24 17:22:04 +00:00
a6d1122e33 added many new files to form fundamental base. wip 2019-01-24 09:53:10 +00:00
9b391741d6 added sck-addr.c for socket address conversion work 2019-01-23 09:37:23 +00:00
0072ab5bd8 kept read timeout after successful read until read is disabled 2019-01-17 08:51:10 +00:00
115031d2ce added moo_dev_timedread() 2019-01-17 08:09:19 +00:00
2372fc535e changed the return type of on_connect to void 2019-01-16 10:42:20 +00:00
af20b13e04 enhanced cfq free list management a bit 2019-01-16 04:37:53 +00:00
d0583e95c8 enhanced to reuse some cwq objects once allocated with dstaddr of size 0 2019-01-14 09:23:16 +00:00
ec28cccdd3 enhanced mio_killdev() to clear unfired completed write events 2019-01-14 08:45:56 +00:00
306384370c changed to push backward the write completion event into the main loop 2019-01-14 08:33:14 +00:00
b30bbf8063 touched up code for renewal 2019-01-11 07:35:43 +00:00
27695e69cd regenerated build files 2018-12-17 03:27:20 +00:00
3950555fc2 renamed stio-cfg.in.h to mio-cfg.in.h 2018-12-17 03:25:30 +00:00
5f7cbf3ca9 less use of MIO_MT 2018-12-16 17:37:59 +00:00
fb0258db6a added utf8.c 2018-12-12 14:20:08 +00:00
0f604972af trimmed some source files 2018-12-12 14:16:49 +00:00
6e69dd97ce added --enable-unicode 2018-12-12 13:24:05 +00:00
14dc22fd0e renamed stio to mio in source files 2018-12-12 13:15:54 +00:00
daf5143ba3 renamed stio to mio 2018-12-12 13:06:37 +00:00