245 Commits

Author SHA1 Message Date
3694b6e6d0 Merge branch rexy 2021-09-05 14:27:27 -07:00
0f80f85013 Merge branch 'master' of https://github.com/Cloaked9000/frnetlib 2021-09-05 14:20:18 -07:00
8dd40cd315 Fix metadata 2021-09-05 14:17:50 -07:00
Fred Nicolson
7b4074dab2
Merge pull request #19 from rexy712/master
Add a pkg-config file to the project.
2021-06-25 23:43:31 +01:00
d3f8f3a92b Fix incomplete move construction of SSLSocket. Add move constructor to Socket and TcpSocket 2021-06-25 14:34:32 -07:00
c97280d190 Add move constructor and assignment to SSLSocket 2021-06-25 11:42:36 -07:00
ddfbbe5584 Fix README's examples to include headers as they are installed in a given system 2021-06-25 10:57:02 -07:00
c3bcc8f445 Fix README's SSL example 2021-06-25 10:54:49 -07:00
4fe8b5108f Update gitignore 2021-06-25 10:52:44 -07:00
5215d5aca0 Add getters for SSLListener's and SSLSocket's SSLContext member 2021-06-25 10:52:12 -07:00
1ae3523fe2 Add a pkg-config file to the project.
I ended up having to edit CMakeLists.txt a bit to get it to work out.
So I modified the versioning in version.h to utilize the new variable I made.
No functionality is changed, just worked on the build system.
2021-06-24 16:09:43 -07:00
Fred Nicolson
7e1e076cbe
Delete crunch42-analysis.yml 2021-03-19 23:12:35 +00:00
Fred Nicolson
e55a386a1e
Create codeql-analysis.yml 2021-03-19 23:12:21 +00:00
Fred Nicolson
ceb16fddaa
Create crunch42-analysis.yml 2021-03-19 23:11:54 +00:00
Fred Nicolson
68819cfa09
Removed redundant link option 2020-01-14 09:42:43 +00:00
Fred Nicolson
9d901396dc
Removed redundant include 2020-01-14 09:39:21 +00:00
Fred Nicolson
69407a6ac5
Fix tests 2020-01-14 09:36:28 +00:00
Fred Nicolson
4624155351
Fix CI. Http parsing optimisation. 2020-01-13 10:52:33 +00:00
Fred Nicolson
5b2b92835e
Add support for chunked HTTP response parsing 2019-11-25 16:29:06 +00:00
Fred Nicolson
41f600cd11
HTTP construction and parsing bug fixes
Don't trim received HTTP body if content length isn't specified.

Don't add duplicate \r\n after POST string data, if no POST data is specified.
2019-11-13 17:02:23 +00:00
Fred Nicolson
a77d7e287a
Add support for std::string_view to fr::Packet when available 2019-08-09 11:59:24 +01:00
Fred Nicolson
a4adac8bf7
Better URL parsing 2019-06-26 13:50:01 +01:00
Fred Nicolson
a515cf7c92
Added setters for fr::URL components + ability to get whole URL 2019-06-25 14:53:34 +01:00
Fred Nicolson
134940138a
Update CMakeLists.txt 2019-05-17 13:06:39 +01:00
Fred Nicolson
81118e6606
Tweak send/receive visibility 2019-05-17 11:38:59 +01:00
fred
12f1d7b0ce Fix broken examples 2019-05-04 00:07:43 +01:00
Fred Nicolson
52ff3c6e27
Don't enable SSL by default 2019-05-03 23:25:53 +01:00
Fred Nicolson
32767786af
Moving enums to enum classes 2019-05-01 17:06:09 +01:00
Fred Nicolson
277a74430c
ODR Fixes 2019-05-01 13:08:13 +01:00
Fred Nicolson
abd6dbebad
Fix ODR violations 2019-05-01 10:27:44 +01:00
Fred Nicolson
c23a77d4cc
Cleaned up code. Updated documentation. 2019-04-30 17:29:03 +01:00
Fred Nicolson
7f1c25a73b
Don't set SO_REUSEADDR on Windows 2019-04-26 09:59:57 +01:00
Fred Nicolson
00f13e41e7
Added the ability to set write timeouts
Similar to read timeouts.
2019-04-02 10:34:31 +01:00
Fred Nicolson
6814219cbb
Bug fixes. fr::Socket::send_raw now behaves like receive_raw.
Added missing virtual destructors in abstract classes.
2019-03-21 16:24:22 +00:00
Fred Nicolson
7343529302 Add support for extracting std::vector<bool> from packets 2019-01-17 11:51:18 +00:00
Fred Nicolson
2c771fa46e Disable copying/moving of SSLContext 2019-01-15 13:12:16 +00:00
Fred Nicolson
992fbc885e Added NoRouteToHost error. Fixed Disconnect not being returned by Socket 2019-01-15 11:09:11 +00:00
Fred Nicolson
d53cc86fb9 Fixed Windows build 2019-01-14 15:57:39 +00:00
Fred Nicolson
1ccde3f324 Fix tests 2019-01-14 13:38:35 +00:00
Fred Nicolson
16ee36f5d2 Merge remote-tracking branch 'origin/master' 2019-01-14 13:33:12 +00:00
Fred Nicolson
cb532d41b2 Improvements to error reporting 2019-01-14 13:33:08 +00:00
Fred Nicolson
0610ccec2f
Don't build concurrent HTTP example on Windows 2018-12-13 15:52:40 +00:00
Fred Nicolson
16bb072c12 Remove unused variable from HttpRequest. Remove redundant noexcept. 2018-12-11 16:02:42 +00:00
Fred Nicolson
8ee8e264b9
Remove Opaque object on failure to add to EPOLL
delete shouldn't have been used.
2018-11-28 21:51:22 +00:00
Fred Nicolson
094c211f7f Better Concurrent HTTP Server example 2018-11-28 13:44:44 +00:00
Fred Nicolson
60316be04c Fix Windows build error 2018-11-28 13:32:41 +00:00
Fred Nicolson
8ea8eafdd8 SocketSelector fixes. Set SO_REUSEPORT. 2018-11-28 13:21:50 +00:00
Fred Nicolson
87f8ee21b1 Fix missing \r after Connection:keep-alive header in HTTP requests 2018-11-26 16:40:18 +00:00
Fred Nicolson
dd1322385b Return opaque data when socket is removed 2018-11-23 15:59:53 +00:00
Fred Nicolson
dc247c556d Fix fr::Socket receive_all bug
Introduced with disconnect tweaking a few days ago.
2018-11-19 17:01:57 +00:00