Peter Johnson
564c1f2de2
[wpinet] WebServer: Fix Windows ( #7551 )
...
The order of evaluation of parameters is not defined; on Windows,
the std::move was executed before the GetBuffer().
2024-12-14 23:07:48 -08:00
Peter Johnson
a1b642a402
[wpinet] Add simple web server ( #7527 )
...
Also add EscapeHTML to HttpUtil.
2024-12-14 11:51:21 -08:00
Tyler Veness
a04c40f589
Replace std::make_pair with std::pair CTAD ( #7405 )
2024-11-17 20:29:23 -08:00
Thad House
c289562a06
Allow compilation on android ( #7386 )
2024-11-12 16:39:41 -08:00
Thad House
edc3963955
[wpinet] Fix resolver thread on newer versions of macOS ( #7372 )
...
Implicit capture of this is deprecated.
2024-11-08 20:23:17 -08:00
Peter Johnson
f620141e0d
[wpiutil] Replace LLVM StringMap impl with std::map
...
As string_view operations on std::map<std::string> won't be integrated
until C++26, placeholder implementations are used which are less efficient
in a couple of situations (e.g. insert with hint).
2024-10-31 22:04:13 -07:00
Peter Johnson
e8d2d1c39a
[wpinet] HttpRequest: Keep params ordered ( #7246 )
2024-10-22 08:32:41 -06:00
Tyler Veness
dd72a78aa4
[upstream_utils] Upgrade to libuv 1.49.2 ( #7226 )
2024-10-19 09:55:45 -07:00
PJ Reiniger
36e0c9d6db
[build] MVP for building with bazel ( #6994 )
2024-10-19 09:54:49 -07:00
Gold856
0424e5ba36
[build] Remove unnecessary symbol exclusions ( #7221 )
...
The symbol exporter in native-utils was updated and stopped exporting the excluded symbols.
2024-10-17 16:19:19 -07:00
Tyler Veness
fad06ae1e7
Merge .inc files into headers ( #7215 )
2024-10-15 23:42:57 -07:00
Peter Johnson
c6d801d2d6
[wpinet] ParallelTcpConnector: Add option to resolve only IPv4 addresses ( #7194 )
2024-10-11 16:42:59 -07:00
Peter Johnson
768fa5f973
[wpinet] libuv: Change GetAddrInfo hints parameter to optional ( #7196 )
...
This is clearer than passing a pointer.
2024-10-11 16:42:42 -07:00
Peter Johnson
8870d98f80
[upstream_utils] Revert upgrade to libuv 1.49.0
...
This reverts commit eab93f4fdc (#7129 ).
There's broken behavior in getaddrinfo.
2024-10-11 16:13:15 -07:00
Tyler Veness
eab93f4fdc
[upstream_utils] Upgrade to libuv 1.49.0 ( #7129 )
2024-09-27 12:00:54 -07:00
Tyler Veness
554024767e
Fix errors from new cpplint.py ( #7105 )
2024-09-20 17:43:39 -07:00
Gold856
b12b83aa89
Fix typos with cspell ( #6972 )
2024-08-17 07:44:34 -07:00
Gold856
6b0aeb8e90
[build] CMake: consolidate and clean up include dirs ( #6927 )
...
Also remove the thirdparty AprilTag source directory from both CMake and Gradle header setup.
2024-08-10 23:39:17 -07:00
PJ Reiniger
f561a77e75
[upstream_utils] Add googletest ( #6820 )
2024-07-18 21:10:26 -07:00
Gold856
9703142ebe
[build] CMake: simplify source JAR creation and install ( #6831 )
...
Bump required minimum CMake version to 3.21.
2024-07-15 15:12:41 -07:00
Gold856
bf75c03218
[build] Clean up CMake files ( #6802 )
...
Explicitly list required components when using FindJava and FindJNI
Consolidate find_package calls for Java, JNI, and OpenCV into the root CMakeLists.txt file
Remove references to main_lib_dest
Install missing generated headers
Flatten some if statements
Use LinkMacOSGUI macro instead of hand rolling it
Stop installing OpenCV libraries and an extra ntcorejni library; OpenCV JAR will still be installed to make it easy to use
Only print platform version on Windows
Prevent GUI modules from being built when wpimath is off, which would otherwise cause a build failure
Simplify build configuration checks
Clean up fieldImages JAR creation
Place built JARs in the same subdir as installed JARs
Remove unnecessary JAR includes
Remove extra directories in target_include_directories
Improve CMake docs
2024-07-11 16:01:05 -06:00
Tyler Veness
0954ded60a
[upstream_utils] Upgrade to libuv 1.48.0 ( #6806 )
2024-07-07 06:39:56 -07:00
Jade
047eaac11e
[wpinet] Remove non GP language ( #6774 )
2024-06-28 20:14:26 -07:00
Wispy
df4694c9df
[wpinet] Add indication of success/failure to PortForwarder ( #6697 )
2024-06-04 21:09:45 -07:00
Jade
6220c6be4d
[wpiutil] Remove RuntimeDetector and simplify RuntimeLoader ( #6600 )
2024-05-24 10:48:59 -07:00
Gold856
72a6d22d9a
[build] Organize cmake files ( #6617 )
2024-05-24 10:48:05 -07:00
Tyler Veness
d88c71ffdc
[wpiutil] Upgrade to fmt 10.2.1, add wpi::print ( #6161 )
...
We now use a wrapper (wpi::print) to catch exceptions since we can't patch
std::print() to not throw when we ultimately migrate to it.
fmtlib and std format/print throw the same exceptions and always have. We previously patched fmt::print() to not throw a write failure exception, but we can't do that for std::print(); wpi::print() is the migration plan.
2024-05-12 06:25:42 -07:00
Peter Johnson
c88be31ec2
Merge branch 'development'
2024-04-21 20:15:51 -07:00
Tyler Veness
74f648689e
[build] Add exports to CMake subprojects ( #6505 )
...
This allows consuming allwpilib via FetchContent.
2024-04-10 22:04:22 -07:00
Tyler Veness
5370f249a1
[build] Upgrade to wpiformat 2024.33 ( #6449 )
...
This upgrades to clang-format and clang-tidy 18.1.1. This has the
constructor attribute formatting fix, so we can remove our
WPI_DEPRECATED macro.
2024-03-18 23:11:20 -07:00
Joe Wildfong
6b6a55b72e
[build] Fix tcpsockets header publishing ( #6367 )
2024-02-12 19:44:31 -08:00
Peter Johnson
51d92c7027
[build] Fix compilation with musl ( #6289 )
2024-01-21 20:32:56 -08:00
Peter Johnson
f518e143d0
[wpinet] WebSocket: Utilize uv::Handle logging
2024-01-20 07:24:16 -08:00
Peter Johnson
6fab87fa4c
[wpinet] uv::Stream: Add logging for Write and TryWrite
2024-01-20 07:24:16 -08:00
Peter Johnson
42c41785ac
[wpinet] uv::Handle: Add wpi::Logger support
...
This allows the uv wrappers and any related classes to log directly to
a wpi::Logger.
2024-01-20 07:24:16 -08:00
Peter Johnson
98c0827236
[wpinet] WebSocket: serializer bugfixes ( #6264 )
2024-01-20 00:38:56 -08:00
Peter Johnson
9a5366bb83
[wpiutil] WebSocket: Add GetLastReceivedTime
...
This allows getting the timestamp that any data has been received.
2024-01-19 23:45:01 -08:00
Tyler Veness
77c09b9ce2
[docs] Build with JavaDoc 17 and add missing docs ( #6220 )
...
Co-authored-by: Sam Carlberg <sam.carlberg@gmail.com >
2024-01-19 23:42:09 -08:00
Peter Johnson
24a24c9051
[wpinet] WebSocket: Improve disconnect reason reporting ( #6262 )
...
Add "remote close:" to messages coming from the remote end.
Previously it was impossible to tell if the error was on the local side
or communicated by the remote side.
2024-01-19 23:13:38 -08:00
m10653
01fb98baaa
[docs] Add Missing JNI docs from C++ (NFC) ( #6139 )
2024-01-02 20:13:46 -08:00
Tyler Veness
ad0859a8c9
[docs] Add missing JavaDocs ( #6125 )
2024-01-01 22:56:23 -08:00
Tyler Veness
192a28af47
Fix JDK 21 warnings ( #6028 )
2023-12-09 21:45:02 -08:00
Gold856
f5fc101fda
[build] cmake: Export jars and clean up jar installs ( #6014 )
2023-12-06 18:28:38 -08:00
Tyler Veness
ca272de400
[build] Fix Gradle compile_commands.json and clang-tidy warnings ( #5977 )
2023-12-02 21:20:43 -08:00
Gold856
4fcf0b25a1
[build] Apply a formatter for CMake files ( #5973 )
2023-11-30 16:52:21 -08:00
Tyler Veness
23dd591394
[upstream_utils] Remove libuv patch that adjusts whitespace ( #5976 )
2023-11-29 12:22:28 -08:00
Gold856
25b7dca46b
[build] Remove CMake flat install option ( #5944 )
2023-11-21 11:48:32 -08:00
Tyler Veness
a8b80ca256
[upstream_utils] Update to libuv 1.47.0 ( #5889 )
2023-11-14 12:12:56 -08:00
Gold856
9eecf2a456
[build] Add CMake option to build Java sources jars ( #5768 )
2023-10-30 09:57:28 -07:00
Peter Johnson
3e7ba2cc6f
[wpinet] WebSocket: Fix write behavior ( #5841 )
...
On Windows, TryWrite will always return 0 if there is a Write in progress. The previous behavior for SendFrames and SendControl just used a normal Write, which caused issues with code that combined these with TrySendFrames. Instead, have SendFrames and SendControl also use TryWrite under the hood if possible, and create write requests if not. The implementation preserves the priority of SendControl against an existing write request with multiple frames.
2023-10-29 16:48:25 -07:00