mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
A new concept Parser is introduced with routines to read from a stream into the parser. This solves a problem with the old read interface where messages must be default constructible and move assignable. Parser fixes: * Fix detect invalid reason-phrase octets * Fix write_eof to set the 'complete' state on success * Fix consider parse complete if eof received on empty body WebSocket: * Increase coverage
36 lines
772 B
CMake
36 lines
772 B
CMake
# Part of Beast
|
|
|
|
GroupSources(extras/beast beast)
|
|
GroupSources(include/beast beast)
|
|
GroupSources(test/websocket "/")
|
|
|
|
add_executable (websocket-tests
|
|
${BEAST_INCLUDES}
|
|
../../extras/beast/unit_test/main.cpp
|
|
websocket_async_echo_peer.hpp
|
|
websocket_sync_echo_peer.hpp
|
|
error.cpp
|
|
option.cpp
|
|
rfc6455.cpp
|
|
stream.cpp
|
|
teardown.cpp
|
|
detail/frame.cpp
|
|
detail/mask.cpp
|
|
detail/utf8_checker.cpp
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(websocket-tests ${Boost_LIBRARIES})
|
|
endif()
|
|
|
|
add_executable (websocket-echo
|
|
${BEAST_INCLUDES}
|
|
websocket_async_echo_peer.hpp
|
|
websocket_sync_echo_peer.hpp
|
|
websocket_echo.cpp
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(websocket-echo ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
endif()
|