Merge pull request #181 from malloch/master
Check if accept() has failed before proceding to add socket. Socket numbers are used to index an array of sources returning SOCKET_ERROR (-1) writes out of array bounds.
Properly increment socket number for next server in lo_servers_wait_internal().
Github Actions: update MacOS image label to macos-14, make compatible.
Merge pull request #179 from radarsat1/lo_server_recv_raw_stream_socket-allocation-fixes
Github Actions: do apt update before apt install
lo_server_recv_raw_stream_socket: fix loop memory handling wrt retries
lo_server_recv_raw_stream_socket: get rid of confusing bytes_written variable.
Careful about alignment issues when referencing casted (uint32_t*)
lo_server_recv_raw_stream_socket: correct socket error check
lo_server_recv_raw_stream_socket: handle realloc more safely
Merge pull request #176 from malloch/master
Cleaning up some indentation.
Added functions for clearing bundle memory without deallocation and for setting the timestamp of an existing bundle. Together these enable reusing bundle memory, similar to lo_message_clear() for messages.
Add message clear function to C++ header and testlo.c
ChangeLog, NEWS, tag 0.34.
Update docs for lo_server_recv and related functions to discourage use.
Merge pull request #175 from radarsat1/distcheck-fix-build-with-doc
test_bidirectional_tcp: add lo_server_recv_noblock on sendthread
Disable 'make check' in CI.
Install doxygen in github actions.
Require that docs be explicitly disabled
Add distcheck to the github action.
Merge pull request #174 from malloch/master
Handle edge case in lo_server_recv
Replace while(1) with cleaner syntax
Continue looping in lo_server_recv() until a valid message has been dispatched.
Do not clear revents for socket[i] after it has been removed, since this clear revents for next socket instead.
Restore old version of test_bidirectional_tcp with calls to lo_server_recv()
Use lo_recv_noblock() in test_bidirectional_tcp to avoid stalling in github actions if test fails.
Changelog, NEWS, tag 0.33.
Add a recent contributor.
Merge pull request #168 from Benetti-Engineering-sas/fix/strncpy
server.c: fix build failure as static library
Merge pull request #167 from malloch/reuse-msg
Add new function lo_message_clear() to public API, enabling lo_message data structures to be cleared and reused without de/re-allocating memory. Also added lo_message_decref() for manually decrementing refcounts in contexts where this is necessary.
Properly free cached message paths and decrement message refcount in lo_bundle_free(). Alter testlo.c and send.c to free messages after bundles that reference them have been free'd.
Replace deprecated function lo_bundle_free_messages in testlo.c
Documentation fixes.
Merge pull request #163 from malloch/optimize-server2
Check sockets in reverse order; refactoring.
Fix waiting logic in lo_servers_recv_noblock.
Merge branch 'master' into optimize-server2
Merge pull request #162 from malloch/fix-tests
testlo: Try adding a one-second sleep for server_thread to process messages before deleting coerce_handler.
cpp_test: Added missing path slash characters.
Merge pull request #161 from malloch/fix-oscsendfile
Skip value entries for LO_TRUE/LO_FALSE/LO_NIL/LO_INFINITUM created by oscdump. Thanks to @7890 for the patch! Related to radarsat1/liblo#111
Disallow negative speed multiplier in testsendfile.c; updated documentation; updated gitignore
Merge pull request #160 from malloch/fix-ci
CI: upgrade checkout and upload-artifact actions.
CI: downgrade MacOS runner to MacOS-13 to build on x86. Future commit should fix cross compilation script to run on Apple silicon
Fix cmake WITH_POLL option; added documentation on disabling poll to README.
Add a configure option for disabling poll since select is much faster for certain contexts.
Removed a bunch of duplicate calls to poll/select, use wait() for lo_server_recv as well. Fixed buggy behaviours in which handling a newly queued message would take precedence over dispatching an existing queued message with a lower timestamp, and in which undispatched messages would still cause lo_server_recv to return.
Fix build failure as static library
Release 0.32.
Update links in README.
Add use of doxygen-awesome-css look for docs.
Release 0.32.
Update links in README.
fixup! Add use of doxygen-awesome-css look for docs.
Release 0.32.
Update links in README.
Add use of doxygen-awesome-css look for docs.
Enable index and treeview in doxygen.
Update doxygen config.
Update CMakeLists.txt
Merge pull request #155 from radarsat1/github-actions
CMake: enable testing
CMake: Also build test_bidirectional_tcp.c
Various Windows fixes
Fix mac bug, where 127.0.0.1 is unknown
Fix bug with hanging test
Run tests explicitly
Merge pull request #154 from radarsat1/#138
Fixes #138: Allow creating size-0 blobs
[cpp] Fix that del_method did not actually delete it from the std::vector
WIN32: the nfds parameter of select() is unused.
WIN32: fix declaration of UINT_PTR
WIN32: WSAGetLastError() returns WSAEINVAL
WIN32: No need to use strlen() into MultiByteToWideChar()
Similar useless assignment as in 8187a8456.
Merge pull request #140 from tartina/warnings
Fix use-after-free warning in server.c
Merge pull request #137 from malloch/ci
CI: timeout after 20 minutes.
Updates for CI script: updated checkout version to 3, removed MacOS-10 runner.
Merge pull request #136 from tartina/uninitialized
Fix "ret uninitialized" compiler warning
Merge pull request #135 from malloch/master
Merge pull request #134 from h3xx/fix-paths
More tweaks to TCP revent handling, added delay to TCP test to allow receipt before closing stream.
CI: bump g++ version to 9.
Switched (fixed) treatment of poll() revents to bitflags and call close on socket POLLHUP event.