├── .DS_Store ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── examples ├── codebuffer.c ├── kcp │ ├── kcp_client.c │ └── kcp_server.c ├── p2p │ ├── p2p_client.c │ └── p2p_server.c ├── tcp │ ├── tcp_client.c │ └── tcp_server.c └── udp │ ├── udp_client.c │ └── udp_server.c ├── include ├── mr_buffer.h ├── mr_code.h ├── mr_mem.h ├── mr_socket.h ├── mr_socket_kcp.h ├── mrsocket.h └── socket_info.h ├── lib ├── Debug │ ├── mrsocket.lib │ └── mrsocket.pdb └── libmrsocket.a ├── main.c ├── mrsocket ├── CMakeLists.txt ├── atomic.h ├── ikcp.c ├── ikcp.h ├── mr_buffer.c ├── mr_buffer.h ├── mr_code.h ├── mr_config.h ├── mr_mem.c ├── mr_mem.h ├── mr_rbtree.c ├── mr_rbtree.h ├── mr_slist.h ├── mr_socket.c ├── mr_socket.h ├── mr_socket_kcp.c ├── mr_socket_kcp.h ├── mr_time.h ├── mr_timer.c ├── mr_timer.h ├── mrsocket.h ├── socket_epoll.h ├── socket_info.h ├── socket_kqueue.h ├── socket_poll.h ├── socket_select.h ├── socket_server.c ├── socket_server.h ├── spinlock.h └── win │ ├── atomic.h │ ├── spinlock.h │ ├── winconfig.h │ ├── winport.c │ ├── winport.h │ ├── winsocket.c │ ├── winsocket.h │ └── winsocketdef.h └── run.sh /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /demo 3 | /bin -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/README.md -------------------------------------------------------------------------------- /examples/codebuffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/codebuffer.c -------------------------------------------------------------------------------- /examples/kcp/kcp_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/kcp/kcp_client.c -------------------------------------------------------------------------------- /examples/kcp/kcp_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/kcp/kcp_server.c -------------------------------------------------------------------------------- /examples/p2p/p2p_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/p2p/p2p_client.c -------------------------------------------------------------------------------- /examples/p2p/p2p_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/p2p/p2p_server.c -------------------------------------------------------------------------------- /examples/tcp/tcp_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/tcp/tcp_client.c -------------------------------------------------------------------------------- /examples/tcp/tcp_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/tcp/tcp_server.c -------------------------------------------------------------------------------- /examples/udp/udp_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/udp/udp_client.c -------------------------------------------------------------------------------- /examples/udp/udp_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/examples/udp/udp_server.c -------------------------------------------------------------------------------- /include/mr_buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mr_buffer.h -------------------------------------------------------------------------------- /include/mr_code.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mr_code.h -------------------------------------------------------------------------------- /include/mr_mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mr_mem.h -------------------------------------------------------------------------------- /include/mr_socket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mr_socket.h -------------------------------------------------------------------------------- /include/mr_socket_kcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mr_socket_kcp.h -------------------------------------------------------------------------------- /include/mrsocket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/mrsocket.h -------------------------------------------------------------------------------- /include/socket_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/include/socket_info.h -------------------------------------------------------------------------------- /lib/Debug/mrsocket.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/lib/Debug/mrsocket.lib -------------------------------------------------------------------------------- /lib/Debug/mrsocket.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/lib/Debug/mrsocket.pdb -------------------------------------------------------------------------------- /lib/libmrsocket.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/lib/libmrsocket.a -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/main.c -------------------------------------------------------------------------------- /mrsocket/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/CMakeLists.txt -------------------------------------------------------------------------------- /mrsocket/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/atomic.h -------------------------------------------------------------------------------- /mrsocket/ikcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/ikcp.c -------------------------------------------------------------------------------- /mrsocket/ikcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/ikcp.h -------------------------------------------------------------------------------- /mrsocket/mr_buffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_buffer.c -------------------------------------------------------------------------------- /mrsocket/mr_buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_buffer.h -------------------------------------------------------------------------------- /mrsocket/mr_code.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_code.h -------------------------------------------------------------------------------- /mrsocket/mr_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_config.h -------------------------------------------------------------------------------- /mrsocket/mr_mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_mem.c -------------------------------------------------------------------------------- /mrsocket/mr_mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_mem.h -------------------------------------------------------------------------------- /mrsocket/mr_rbtree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_rbtree.c -------------------------------------------------------------------------------- /mrsocket/mr_rbtree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_rbtree.h -------------------------------------------------------------------------------- /mrsocket/mr_slist.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_slist.h -------------------------------------------------------------------------------- /mrsocket/mr_socket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_socket.c -------------------------------------------------------------------------------- /mrsocket/mr_socket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_socket.h -------------------------------------------------------------------------------- /mrsocket/mr_socket_kcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_socket_kcp.c -------------------------------------------------------------------------------- /mrsocket/mr_socket_kcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_socket_kcp.h -------------------------------------------------------------------------------- /mrsocket/mr_time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_time.h -------------------------------------------------------------------------------- /mrsocket/mr_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_timer.c -------------------------------------------------------------------------------- /mrsocket/mr_timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mr_timer.h -------------------------------------------------------------------------------- /mrsocket/mrsocket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/mrsocket.h -------------------------------------------------------------------------------- /mrsocket/socket_epoll.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_epoll.h -------------------------------------------------------------------------------- /mrsocket/socket_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_info.h -------------------------------------------------------------------------------- /mrsocket/socket_kqueue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_kqueue.h -------------------------------------------------------------------------------- /mrsocket/socket_poll.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_poll.h -------------------------------------------------------------------------------- /mrsocket/socket_select.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_select.h -------------------------------------------------------------------------------- /mrsocket/socket_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_server.c -------------------------------------------------------------------------------- /mrsocket/socket_server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/socket_server.h -------------------------------------------------------------------------------- /mrsocket/spinlock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/spinlock.h -------------------------------------------------------------------------------- /mrsocket/win/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/atomic.h -------------------------------------------------------------------------------- /mrsocket/win/spinlock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/spinlock.h -------------------------------------------------------------------------------- /mrsocket/win/winconfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winconfig.h -------------------------------------------------------------------------------- /mrsocket/win/winport.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winport.c -------------------------------------------------------------------------------- /mrsocket/win/winport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winport.h -------------------------------------------------------------------------------- /mrsocket/win/winsocket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winsocket.c -------------------------------------------------------------------------------- /mrsocket/win/winsocket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winsocket.h -------------------------------------------------------------------------------- /mrsocket/win/winsocketdef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/mrsocket/win/winsocketdef.h -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linyouhappy/mushroom/HEAD/run.sh --------------------------------------------------------------------------------