155 Commits

Author SHA1 Message Date
Baptiste Wicht
2e8d8cf052
Document the network headers 2016-09-28 10:11:38 +02:00
Baptiste Wicht
6920a0f4fb
Complete the move assignment operator 2016-09-26 21:22:26 +02:00
Baptiste Wicht
80d6496d12
Fix move constructor 2016-09-26 21:21:41 +02:00
Baptiste Wicht
56badb6843
More TCP server support 2016-09-26 17:34:20 +02:00
Baptiste Wicht
029af0ba36
Finalize DHCP and DNS 2016-09-26 13:23:12 +02:00
Baptiste Wicht
29e0abe931 Cleanup commented out code 2016-09-25 21:34:09 +02:00
Baptiste Wicht
3537a55a18 Cleanup 2016-09-25 20:59:41 +02:00
Baptiste Wicht
4d39ee28a4 server_start support for TCP server support 2016-09-25 20:45:14 +02:00
Baptiste Wicht
81b773ccf4 Add receive_from/send_to support 2016-09-25 18:40:28 +02:00
Baptiste Wicht
e7995a74de Server binding 2016-09-25 17:12:11 +02:00
Baptiste Wicht
bd8aa03052 Use read for raw-mode reading 2016-09-22 22:09:53 +02:00
Baptiste Wicht
17a7447139 Use read for getting user input 2016-09-22 21:50:15 +02:00
Baptiste Wicht
1667ec053a Complete support for read with timeout 2016-09-22 21:49:55 +02:00
Baptiste Wicht
3b0a72f8c7 Fix the fd 2016-09-22 21:35:57 +02:00
Baptiste Wicht
fa15df6c80 Use the handles to print 2016-09-22 20:53:44 +02:00
Baptiste Wicht
67ccd31688 Move is_ip to TLIB 2016-09-20 17:49:37 +02:00
Baptiste Wicht
194ed1f62a Review DNS resolve 2016-09-19 22:12:53 +02:00
Baptiste Wicht
683e17f3d0 Enhance UDP support 2016-09-19 21:43:11 +02:00
Baptiste Wicht
28dc3fff33 Allow binding to arbitrary port 2016-09-19 20:42:18 +02:00
Baptiste Wicht
26abd1fd6a Add receive function to stream sockets 2016-09-19 18:43:57 +02:00
Baptiste Wicht
9f69c771f6 Documentation of the tlib 2016-09-19 10:04:09 +02:00
Baptiste Wicht
a92a5c5784 Add send function to ease send of message 2016-09-18 22:29:23 +02:00
Baptiste Wicht
3f3386f9ba Doc 2016-09-18 21:36:07 +02:00
Baptiste Wicht
8af2f9f7cc Cleanup tlib 2016-09-18 21:34:55 +02:00
Baptiste Wicht
0422e1fed8 Continue cleanup network suport 2016-09-18 20:26:37 +02:00
Baptiste Wicht
bbd2f31093 Handle UDP unbind 2016-09-18 19:59:05 +02:00
Baptiste Wicht
623772062b Improve UDP support 2016-09-18 19:46:50 +02:00
Baptiste Wicht
900b6d3e46 Prepare UDP "connection" handling 2016-09-18 11:04:24 +02:00
Baptiste Wicht
e6d5dd2b71 New utility 2016-09-18 10:46:45 +02:00
Baptiste Wicht
bf78df3dcf Prepare HTTP support 2016-09-17 22:23:49 +02:00
Baptiste Wicht
f9d9b40920 Review prepare_packet functions 2016-09-17 21:46:46 +02:00
Baptiste Wicht
395fc33a9a Cleanup 2016-09-17 20:38:18 +02:00
Baptiste Wicht
2f0ee33ba9 finalize_packet may fail 2016-09-17 20:19:35 +02:00
Baptiste Wicht
09c6002bc1 Reformat 2016-09-17 19:24:58 +02:00
Bryon Gloden, CISSP®
19c9d44690 [tlib][net] fix the memory leaks (#7)
* memory leak: buffer

[tlib/src/net.cpp:69]: (error) Memory leak: buffer

Found by https://github.com/bryongloden/cppcheck
2016-09-17 19:22:37 +02:00
Baptiste Wicht
29b5a777fb Guard the TCP connections datastructure 2016-09-17 16:21:20 +02:00
Baptiste Wicht
7a4b6965da Move headers 2016-09-16 17:58:52 +02:00
Baptiste Wicht
a71551720f Allow to send TCP packets 2016-09-15 22:30:43 +02:00
Baptiste Wicht
91333c808d Handle TCP disconnect 2016-09-15 21:05:22 +02:00
Baptiste Wicht
5be0a1a22b Prepare TCP connect 2016-09-13 22:10:08 +02:00
Baptiste Wicht
ebbc38838b New features for network 2016-09-13 21:08:16 +02:00
Baptiste Wicht
77c705308e Fix the damn flags 2016-09-13 19:19:24 +02:00
Baptiste Wicht
6bc6580bb3 Basic resolve support in tlib 2016-09-12 22:26:47 +02:00
Baptiste Wicht
47756c2778 Auto association of the port 2016-09-12 21:57:42 +02:00
Baptiste Wicht
853ca52dd4 Prepare binding 2016-09-12 21:14:46 +02:00
Baptiste Wicht
1c1f56f567 Improve nslookup 2016-09-12 20:35:33 +02:00
Baptiste Wicht
eabca269b0 Basic nslookup support 2016-09-12 20:05:40 +02:00
Baptiste Wicht
9f27ad8420 Move some constants to tlib 2016-09-12 18:12:36 +02:00
Baptiste Wicht
c01d9b799a Use RAII for packet memory 2016-09-11 20:48:37 +02:00
Baptiste Wicht
0567908a05 Reformat code 2016-09-11 20:08:41 +02:00