Skip to content
프로젝트

소개

Low-level networking interface

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

GitHub Actions status

network

To build this package directly from git, you must run autoreconf -i. And then use cabal build or stack build.

Support Policy

GHC

Since version 4.0, the network package supports GHC 9.4 or later.

Windows

Since version 4.0, network supports only WinIO version 2 on Windows: GHC's WinIO I/O manager which handles overlapped I/O exceptions (__IO_MANAGER_WINIO__ 2), in GHC 9.12.5 or later in 9.12, or 9.14.2 or later. The I/O manager is chosen by the executable, so link it with

ghc-options: -threaded "-with-rtsopts=--io-manager=native"

or run it with +RTS --io-manager=native -RTS. With No IO Manager (before WinIO, --io-manager=posix), use network 3.2. Sockets behind a non-IFS Layered Service Provider, deprecated since Windows 8, are not supported.

We use MSYS to build this package on Windows. To use the network package on Cygwin, use stack.

Coding

.hs files

If you need C macros created by "configure" or CALLCONV, put

#include "HsNetDef.h"

"HsNet.h" does not work well since Mac's cpp sucks.

.hsc files

If you need #peek, #poke and others, create a .hsc file with

#include "HsNet.h"

HsNet.h includes HsNetDef.h and necessary C structures. Unfortunately, hsc2hs does not convert C macros. So, if you use CALLCONV, the following is also necessary:

##include "HsNetDef.h"

관련 프로젝트 살펴보기

불러오는 중…