lib/u_async: uasync_set_socket_read/write — O(1) EPOLL_CTL_MOD toggle per socket lib/ll_queue: queue_set_empty_callback — one-shot deferred callback on queue drain lib/tcp_io: TCP connection management via uasync + ll_queue with pool alloc - read: direct recv into pool buffer, high/low water flow control - write: autofetch via ll_queue callback, partial send via write_buf - on_fin/on_error/on_flushed callbacks, FIN deferred until read_queue drained - getpeername for pre-connected socket detection tcp_proxy_server: migrated to tcp_io (22→13 fields, 437→270 lines, -7 functions) tests: test_tcp_io (5 tests), test_tcp_proxy_server rewritten for tcp_conn
43 lines
652 B
Makefile
43 lines
652 B
Makefile
noinst_LIBRARIES = libuasync.a
|
|
|
|
libuasync_a_SOURCES = \
|
|
u_async.c \
|
|
u_async.h \
|
|
ll_queue.h \
|
|
ll_queue.c \
|
|
debug_config.c \
|
|
debug_config.h \
|
|
timeout_heap.c \
|
|
timeout_heap.h \
|
|
memory_pool.c \
|
|
memory_pool.h \
|
|
sha256.c \
|
|
sha256.h \
|
|
socket_compat.c \
|
|
socket_compat.h \
|
|
platform_compat.c \
|
|
platform_compat.h \
|
|
getmyip.c \
|
|
getmyip.h \
|
|
swm_min.c \
|
|
swm_min.h \
|
|
mem.c \
|
|
mem.h \
|
|
radix.c \
|
|
radix.h \
|
|
serialize.c \
|
|
serialize.h \
|
|
tcp_io.c \
|
|
tcp_io.h
|
|
|
|
libuasync_a_CFLAGS = \
|
|
-D_ISOC99_SOURCE \
|
|
-DDEBUG_OUTPUT_STDERR \
|
|
-g \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/lib
|
|
|
|
# Clean build directory
|
|
clean-local:
|
|
-rm -rf $(top_builddir)/build
|