forked from boostorg/beast
The websocket stream is optimized to contain a small circular static buffer, reducing the number of I/O calls when reading data. The size of the buffer is tuned for maximum performance with TCP/IP and no long needs configuration: * read_some replaces read_frame * write_some replaces write_Frame * async_read_some replaces async_read_frame * async_write_some replaces async_write_frame * websocket::stream::read_buffer_size is removed Actions Required: * Remove calls websocket::stream::read_buffer_size * Use read_some and write_some instead of read_frame and write_frame
16 lines
316 B
CMake
16 lines
316 B
CMake
# Part of Beast
|
|
|
|
GroupSources(include/beast beast)
|
|
GroupSources(example/common common)
|
|
GroupSources(example/websocket-server-async "/")
|
|
|
|
add_executable (websocket-server-async
|
|
${BEAST_INCLUDES}
|
|
${COMMON_INCLUDES}
|
|
websocket_server_async.cpp
|
|
)
|
|
|
|
target_link_libraries(websocket-server-async
|
|
Beast
|
|
)
|