The Win32-dhcp-server package

[Tags: bsd3, library]

This package provides a partial binding to the Win32 DHCP Server Management API. Its purpose is to query and control a Microsoft DHCP server. Enough functionality is defined so so that Ipv4 client lease and reservation records can be manipulated programmatically.

Here are a few notes on the required environment:

Simple Example and Usage

-- Print all MAC addresses with an active client lease
module Main where

import Data.Ip
import Data.Mac
import qualified Data.Text.IO as T
import System.Win32.DHCP

main :: IO ()
main = do
    api <- loadDHCP
    clients <- enumClients api context
    let macs = map (showMac ":" . clientHardwareAddress) clients
    mapM_ T.putStrLn macs
    Right subnet = readIp ""
    context = Context "" subnet


Versions0.1, 0.2, 0.2.1 (info)
Dependenciesbase (>=4.6 && <4.8), text (>0.11 && <1.2), Win32 (>=2.2 && <2.4), Win32-errors (>=0.2 && <1.0)
Copyright2013 Michael Steele
AuthorMichael Steele
Home page
Bug tracker
UploadedSat Aug 30 00:44:50 UTC 2014 by MichaelSteele
Downloads378 total (47 in last 30 days)
StatusDocs uploaded by user [build log]
All reported builds failed [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees