carpentry-org / carpentry-org/web

Windows support

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
0
Avg merge
1d 20h
Merged PRs (30d)
13

Description

The web framework itself is pure Carp, but its dependencies are POSIX-only.

**Socket library (bulk of work):**
- `winsock2.h` instead of `sys/socket.h`, `WSAStartup` init
- `closesocket()` instead of `close()`
- `ioctlsocket(FIONBIO)` instead of `fcntl` for non-blocking
- `WSAPoll` instead of kqueue/epoll (IOCP can be a later optimization)
- `TransmitFile()` instead of `sendfile(2)`

**File library (small):**
- `_unlink` instead of `unlink`
- `FindFirstFile`/`FindNextFile` instead of `opendir`/`readdir`

**Time library (trivial):**
- Minor `#ifdef` for `gettimeofday`

Everything else (json, uri, http, orm, log, strbuf, bufio, web) is pure Carp and needs no changes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.