├── CMakeLists.txt ├── README.md ├── WebSocketServer.sln ├── WebSocketServer.vcxproj ├── WebSocketServer.vcxproj.filters ├── appsrc ├── BusinessSession.cpp ├── BusinessSession.h └── main.cpp ├── base ├── AsyncLog.cpp ├── AsyncLog.h ├── ConfigFileReader.cpp ├── ConfigFileReader.h ├── Platform.cpp ├── Platform.h ├── RAIIWrapper.h ├── Singleton.h ├── Timestamp.cpp └── Timestamp.h ├── net ├── Acceptor.cpp ├── Acceptor.h ├── Buffer.cpp ├── Buffer.h ├── Callbacks.h ├── Channel.cpp ├── Channel.h ├── Connector.cpp ├── Connector.h ├── Endian.h ├── EpollPoller.cpp ├── EpollPoller.h ├── EventLoop.cpp ├── EventLoop.h ├── EventLoopThread.cpp ├── EventLoopThread.h ├── EventLoopThreadPool.cpp ├── EventLoopThreadPool.h ├── InetAddress.cpp ├── InetAddress.h ├── PollPoller.cpp ├── PollPoller.h ├── Poller.cpp ├── Poller.h ├── ProtocolStream.cpp ├── ProtocolStream.h ├── SelectPoller.cpp ├── SelectPoller.h ├── Sockets.cpp ├── Sockets.h ├── TcpClient.cpp ├── TcpClient.h ├── TcpConnection.cpp ├── TcpConnection.h ├── TcpServer.cpp ├── TcpServer.h ├── Timer.cpp ├── Timer.h ├── TimerId.h ├── TimerQueue.cpp └── TimerQueue.h ├── utils ├── DaemonRun.cpp ├── DaemonRun.h ├── StringUtil.cpp ├── StringUtil.h ├── UUIDGenerator.cpp └── UUIDGenerator.h ├── websocketsrc ├── MyWebSocketServer.cpp ├── MyWebSocketServer.h ├── MyWebSocketSession.cpp ├── MyWebSocketSession.h └── WebSocketHandshake.h └── zlib1.2.11 ├── ZlibUtil.cpp ├── ZlibUtil.h ├── adler32.c ├── compress.c ├── crc32.c ├── crc32.h ├── deflate.c ├── deflate.h ├── gzclose.c ├── gzguts.h ├── gzlib.c ├── gzread.c ├── gzwrite.c ├── infback.c ├── inffast.c ├── inffast.h ├── inffixed.h ├── inflate.c ├── inflate.h ├── inftrees.c ├── inftrees.h ├── trees.c ├── trees.h ├── uncompr.c ├── zconf.h ├── zlib.h ├── zlibdemo.c ├── zutil.c ├── zutil.h └── 文件概览.txt /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/README.md -------------------------------------------------------------------------------- /WebSocketServer.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/WebSocketServer.sln -------------------------------------------------------------------------------- /WebSocketServer.vcxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/WebSocketServer.vcxproj -------------------------------------------------------------------------------- /WebSocketServer.vcxproj.filters: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/WebSocketServer.vcxproj.filters -------------------------------------------------------------------------------- /appsrc/BusinessSession.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/appsrc/BusinessSession.cpp -------------------------------------------------------------------------------- /appsrc/BusinessSession.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/appsrc/BusinessSession.h -------------------------------------------------------------------------------- /appsrc/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/appsrc/main.cpp -------------------------------------------------------------------------------- /base/AsyncLog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/AsyncLog.cpp -------------------------------------------------------------------------------- /base/AsyncLog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/AsyncLog.h -------------------------------------------------------------------------------- /base/ConfigFileReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/ConfigFileReader.cpp -------------------------------------------------------------------------------- /base/ConfigFileReader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/ConfigFileReader.h -------------------------------------------------------------------------------- /base/Platform.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/Platform.cpp -------------------------------------------------------------------------------- /base/Platform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/Platform.h -------------------------------------------------------------------------------- /base/RAIIWrapper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/RAIIWrapper.h -------------------------------------------------------------------------------- /base/Singleton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/Singleton.h -------------------------------------------------------------------------------- /base/Timestamp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/Timestamp.cpp -------------------------------------------------------------------------------- /base/Timestamp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/base/Timestamp.h -------------------------------------------------------------------------------- /net/Acceptor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Acceptor.cpp -------------------------------------------------------------------------------- /net/Acceptor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Acceptor.h -------------------------------------------------------------------------------- /net/Buffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Buffer.cpp -------------------------------------------------------------------------------- /net/Buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Buffer.h -------------------------------------------------------------------------------- /net/Callbacks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Callbacks.h -------------------------------------------------------------------------------- /net/Channel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Channel.cpp -------------------------------------------------------------------------------- /net/Channel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Channel.h -------------------------------------------------------------------------------- /net/Connector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Connector.cpp -------------------------------------------------------------------------------- /net/Connector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Connector.h -------------------------------------------------------------------------------- /net/Endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Endian.h -------------------------------------------------------------------------------- /net/EpollPoller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EpollPoller.cpp -------------------------------------------------------------------------------- /net/EpollPoller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EpollPoller.h -------------------------------------------------------------------------------- /net/EventLoop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoop.cpp -------------------------------------------------------------------------------- /net/EventLoop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoop.h -------------------------------------------------------------------------------- /net/EventLoopThread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoopThread.cpp -------------------------------------------------------------------------------- /net/EventLoopThread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoopThread.h -------------------------------------------------------------------------------- /net/EventLoopThreadPool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoopThreadPool.cpp -------------------------------------------------------------------------------- /net/EventLoopThreadPool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/EventLoopThreadPool.h -------------------------------------------------------------------------------- /net/InetAddress.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/InetAddress.cpp -------------------------------------------------------------------------------- /net/InetAddress.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/InetAddress.h -------------------------------------------------------------------------------- /net/PollPoller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/PollPoller.cpp -------------------------------------------------------------------------------- /net/PollPoller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/PollPoller.h -------------------------------------------------------------------------------- /net/Poller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Poller.cpp -------------------------------------------------------------------------------- /net/Poller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Poller.h -------------------------------------------------------------------------------- /net/ProtocolStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/ProtocolStream.cpp -------------------------------------------------------------------------------- /net/ProtocolStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/ProtocolStream.h -------------------------------------------------------------------------------- /net/SelectPoller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/SelectPoller.cpp -------------------------------------------------------------------------------- /net/SelectPoller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/SelectPoller.h -------------------------------------------------------------------------------- /net/Sockets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Sockets.cpp -------------------------------------------------------------------------------- /net/Sockets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Sockets.h -------------------------------------------------------------------------------- /net/TcpClient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpClient.cpp -------------------------------------------------------------------------------- /net/TcpClient.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpClient.h -------------------------------------------------------------------------------- /net/TcpConnection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpConnection.cpp -------------------------------------------------------------------------------- /net/TcpConnection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpConnection.h -------------------------------------------------------------------------------- /net/TcpServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpServer.cpp -------------------------------------------------------------------------------- /net/TcpServer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TcpServer.h -------------------------------------------------------------------------------- /net/Timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Timer.cpp -------------------------------------------------------------------------------- /net/Timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/Timer.h -------------------------------------------------------------------------------- /net/TimerId.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TimerId.h -------------------------------------------------------------------------------- /net/TimerQueue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TimerQueue.cpp -------------------------------------------------------------------------------- /net/TimerQueue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/net/TimerQueue.h -------------------------------------------------------------------------------- /utils/DaemonRun.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/DaemonRun.cpp -------------------------------------------------------------------------------- /utils/DaemonRun.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/DaemonRun.h -------------------------------------------------------------------------------- /utils/StringUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/StringUtil.cpp -------------------------------------------------------------------------------- /utils/StringUtil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/StringUtil.h -------------------------------------------------------------------------------- /utils/UUIDGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/UUIDGenerator.cpp -------------------------------------------------------------------------------- /utils/UUIDGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/utils/UUIDGenerator.h -------------------------------------------------------------------------------- /websocketsrc/MyWebSocketServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/websocketsrc/MyWebSocketServer.cpp -------------------------------------------------------------------------------- /websocketsrc/MyWebSocketServer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/websocketsrc/MyWebSocketServer.h -------------------------------------------------------------------------------- /websocketsrc/MyWebSocketSession.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/websocketsrc/MyWebSocketSession.cpp -------------------------------------------------------------------------------- /websocketsrc/MyWebSocketSession.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/websocketsrc/MyWebSocketSession.h -------------------------------------------------------------------------------- /websocketsrc/WebSocketHandshake.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/websocketsrc/WebSocketHandshake.h -------------------------------------------------------------------------------- /zlib1.2.11/ZlibUtil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/ZlibUtil.cpp -------------------------------------------------------------------------------- /zlib1.2.11/ZlibUtil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/ZlibUtil.h -------------------------------------------------------------------------------- /zlib1.2.11/adler32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/adler32.c -------------------------------------------------------------------------------- /zlib1.2.11/compress.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/compress.c -------------------------------------------------------------------------------- /zlib1.2.11/crc32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/crc32.c -------------------------------------------------------------------------------- /zlib1.2.11/crc32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/crc32.h -------------------------------------------------------------------------------- /zlib1.2.11/deflate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/deflate.c -------------------------------------------------------------------------------- /zlib1.2.11/deflate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/deflate.h -------------------------------------------------------------------------------- /zlib1.2.11/gzclose.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/gzclose.c -------------------------------------------------------------------------------- /zlib1.2.11/gzguts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/gzguts.h -------------------------------------------------------------------------------- /zlib1.2.11/gzlib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/gzlib.c -------------------------------------------------------------------------------- /zlib1.2.11/gzread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/gzread.c -------------------------------------------------------------------------------- /zlib1.2.11/gzwrite.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/gzwrite.c -------------------------------------------------------------------------------- /zlib1.2.11/infback.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/infback.c -------------------------------------------------------------------------------- /zlib1.2.11/inffast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inffast.c -------------------------------------------------------------------------------- /zlib1.2.11/inffast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inffast.h -------------------------------------------------------------------------------- /zlib1.2.11/inffixed.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inffixed.h -------------------------------------------------------------------------------- /zlib1.2.11/inflate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inflate.c -------------------------------------------------------------------------------- /zlib1.2.11/inflate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inflate.h -------------------------------------------------------------------------------- /zlib1.2.11/inftrees.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inftrees.c -------------------------------------------------------------------------------- /zlib1.2.11/inftrees.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/inftrees.h -------------------------------------------------------------------------------- /zlib1.2.11/trees.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/trees.c -------------------------------------------------------------------------------- /zlib1.2.11/trees.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/trees.h -------------------------------------------------------------------------------- /zlib1.2.11/uncompr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/uncompr.c -------------------------------------------------------------------------------- /zlib1.2.11/zconf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/zconf.h -------------------------------------------------------------------------------- /zlib1.2.11/zlib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/zlib.h -------------------------------------------------------------------------------- /zlib1.2.11/zlibdemo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/zlibdemo.c -------------------------------------------------------------------------------- /zlib1.2.11/zutil.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/zutil.c -------------------------------------------------------------------------------- /zlib1.2.11/zutil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/zutil.h -------------------------------------------------------------------------------- /zlib1.2.11/文件概览.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/balloonwj/WebSocketServer/HEAD/zlib1.2.11/文件概览.txt --------------------------------------------------------------------------------