How dpull/skynet-mingw works
skynet-mingw is a Windows compatibility layer for the Skynet runtime, adapting its polling, socket, and POSIX-like platform interfaces to Windows. The documented user workflow is to launch a Skynet node (and master) with a configuration, then connect a client. The excerpts show the Windows poll adapter delegating to its epoll-compatible implementation and platform initialization managing that implementation’s startup and cleanup. The Skynet submodule’s internals were not sampled, so its runtime integration is not traced here.
Main entry points: platform.h Platform API · skynet Skynet Runtime · epoll.c Windows Epoll · socket_poll.c Socket Poll Adapter
Components 9
Skynet Runtime
- Skynet Runtime
skynet
Event Polling
- Socket Poll Adapter
platform/socket_poll.c - Windows Epoll
platform/epoll.c
Platform Compatibility
- Platform API
platform/platform.h - POSIX Compatibility
platform/platform.c - Socket Extensions
platform/socket_extend.c - Winsock Definitions
platform/sys/socket.h
Other components
- Operator
- Client
Connections 6
- Operator → Skynet Runtime: launches node
README.md - Client → Skynet Runtime: connects to
README.md - Socket Poll Adapter → Windows Epoll: delegates polling
platform/socket_poll.c - POSIX Compatibility → Windows Epoll: starts and cleans up
platform/platform.c - Socket Extensions → Platform API: implements extensions
platform/socket_extend.c - Platform API → Winsock Definitions: includes definitions
platform/platform.h