├── .clang-format ├── .gitignore ├── LICENSE ├── README.md ├── compile_flags.txt ├── example ├── Makefile ├── async_tcp_example.cpp ├── async_tls_example.cpp ├── async_udp_example.cpp ├── options_example.cpp ├── span_example.cpp ├── tcp_example.cpp ├── tls_example.cpp └── udp_example.cpp └── include └── socketwrapper ├── awaitable.hpp ├── detail ├── base_socket.hpp ├── callbacks.hpp ├── event_loop.hpp ├── event_notifier.hpp ├── event_notifier_epoll.hpp ├── event_notifier_kqueue.hpp ├── socket_option.hpp ├── threadpool.hpp └── utility.hpp ├── endpoint.hpp ├── socketwrapper.hpp ├── span.hpp ├── task.hpp ├── tcp.hpp ├── tls.hpp ├── udp.hpp └── utility.hpp /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/.clang-format -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/README.md -------------------------------------------------------------------------------- /compile_flags.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/Makefile -------------------------------------------------------------------------------- /example/async_tcp_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/async_tcp_example.cpp -------------------------------------------------------------------------------- /example/async_tls_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/async_tls_example.cpp -------------------------------------------------------------------------------- /example/async_udp_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/async_udp_example.cpp -------------------------------------------------------------------------------- /example/options_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/options_example.cpp -------------------------------------------------------------------------------- /example/span_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/span_example.cpp -------------------------------------------------------------------------------- /example/tcp_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/tcp_example.cpp -------------------------------------------------------------------------------- /example/tls_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/tls_example.cpp -------------------------------------------------------------------------------- /example/udp_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/example/udp_example.cpp -------------------------------------------------------------------------------- /include/socketwrapper/awaitable.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/awaitable.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/base_socket.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/base_socket.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/callbacks.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/callbacks.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/event_loop.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/event_loop.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/event_notifier.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/event_notifier.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/event_notifier_epoll.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/event_notifier_epoll.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/event_notifier_kqueue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/event_notifier_kqueue.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/socket_option.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/socket_option.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/threadpool.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/threadpool.hpp -------------------------------------------------------------------------------- /include/socketwrapper/detail/utility.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/detail/utility.hpp -------------------------------------------------------------------------------- /include/socketwrapper/endpoint.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/endpoint.hpp -------------------------------------------------------------------------------- /include/socketwrapper/socketwrapper.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/socketwrapper.hpp -------------------------------------------------------------------------------- /include/socketwrapper/span.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/span.hpp -------------------------------------------------------------------------------- /include/socketwrapper/task.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/task.hpp -------------------------------------------------------------------------------- /include/socketwrapper/tcp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/tcp.hpp -------------------------------------------------------------------------------- /include/socketwrapper/tls.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/tls.hpp -------------------------------------------------------------------------------- /include/socketwrapper/udp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/udp.hpp -------------------------------------------------------------------------------- /include/socketwrapper/utility.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tglane/socketwrapper/HEAD/include/socketwrapper/utility.hpp --------------------------------------------------------------------------------