Commit Graph

30 Commits

Author SHA1 Message Date
Phillip Stephens d72163ad27
Merge pull request #8 from lioncash/bind
Listener: Remove unnecessary bind() within start()
2019-09-03 19:55:03 -07:00
Phillip Stephens fb3d880b63
Merge pull request #7 from lioncash/assignment
Listener: Simplify assignment within accept()
2019-09-03 19:54:45 -07:00
Phillip Stephens ebe78edac7
Merge pull request #6 from lioncash/constexpr
Listener: Move port constants into cpp file
2019-09-03 19:54:27 -07:00
Lioncash be121a1bb9 Listener: Remove unnecessary bind() within start()
std::thread already handles execution of member functions
2019-09-03 10:18:52 -04:00
Lioncash 33908dd86a Listener: Simplify assignment within accept()
We can just assign to the ret variable directly.
2019-09-03 10:15:33 -04:00
Lioncash 4538b20e73 Listener: Use C++17 deduction guides for mutex locks
Same thing, but without hardcoding the mutex type.
2019-09-03 10:13:30 -04:00
Lioncash 04ea97ac8e Listener: Move port constants into cpp file
These are a complete internal detail, so we can hide them from the
header entirely.
2019-09-03 10:07:14 -04:00
Lioncash 5a97e587b6 Endpoint: Use std::array where applicable
Makes the interface a little more strongly-typed, and in some cases
makes it less likely to pass in invalid data.
2019-09-03 09:54:50 -04:00
Phillip Stephens dff87c2c6a
Merge pull request #3 from lioncash/include
General: Amend includes where applicable
2019-09-03 00:36:09 -07:00
Lioncash 9f7c855acd General: Use list initialization where applicable
Same behavior, but without the need for separating the assignment from
the declaration
2019-09-03 00:55:06 -04:00
Lioncash 714e88bb7a Socket: Add missing noexcept specifier to LastWSAError()
This is used within a noexcept function, so it needs the noexcept
2019-09-03 00:27:30 -04:00
Lioncash d4891f187f General: Amend includes where applicable 2019-09-03 00:26:08 -04:00
Phillip Stephens a79aeacfb9 Add missing `noexcept` decorators 2019-08-23 01:32:16 -07:00
Lioncash 6ce7c38e24 General: Make operator bool overloads and single-arg constructors explicit
Prevents various error-prone cases of implicit conversion to bool, while
retaining general conversions within conditional statements. We also
disable implicit conversions with constructors that may be ambiguous to
enforce being clear with intentions.
2019-08-14 10:00:01 -04:00
Jack Andersen 9dd968dd66 Ensure time.h is included 2019-04-06 19:00:24 -10:00
Jack Andersen e28b6551d0 New code style refactor 2018-12-07 19:20:55 -10:00
Jack Andersen 349263a88c Logging changes 2018-02-04 20:55:20 -10:00
Jack Andersen c06141af1e Stack reference bug fix 2018-01-13 20:43:00 -10:00
Jack Andersen 2098e8da29 Isolate WinSock2 header to translation unit 2017-12-29 15:08:45 -10:00
Jack Andersen 34860de248 Remove optional.hpp dependency 2017-12-06 18:09:57 -10:00
Jack Andersen b8c42676ce Minor reorganization; bind to localhost to prevent Windows Firewall alert 2017-01-21 15:38:02 -10:00
Jack Andersen 9db987d3dd Merge branch 'master' of 2017-01-07 16:52:15 -10:00
Jack Andersen 0153e0ee6a Add ability to change SI channel and detect disconnections 2017-01-07 16:51:38 -10:00
Phillip Stephens b82c928e45 FreeBSD fix 2017-01-07 16:20:46 -08:00
Jack Andersen 4699542f93 Add Doxygen comments 2017-01-07 13:55:41 -10:00
Jack Andersen 42f1b86627 Use blocking I/O for transfer thread 2017-01-07 11:19:25 -10:00
Jack Andersen e161ef15fa Remove unnecessary setBlocking calls 2017-01-06 22:50:40 -10:00
Jack Andersen e65f42c843 Disable logging macros 2017-01-06 22:28:58 -10:00
Jack Andersen c34b81ad6c Win32 compatibility fixes 2017-01-06 22:24:16 -10:00
Jack Andersen 9b2b1fd1e6 Use /lib rather than /src 2017-01-06 19:00:40 -10:00