Win32-dhcp-server: Win32 DHCP Server Management API
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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._Only 32-bit versions of GHC are supported at this time._
Here are a few notes on the required environment:
Only 32-bit executables are supported. This is mainly because pointers are assumed to be 4 bytes wide in a few places. Support for 64-bit executables may be added in the future.
All library calls should be supported on Windows 7 or above.
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 where Right subnet = readIp "192.168.1.0" context = Context "192.168.1.5" subnet
Properties
Versions | 0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2, 0.3.2 |
---|---|
Change log | ChangeLog |
Dependencies | base (>=4.6 && <4.9), text (>=0.11 && <1.3), Win32 (>=2.2 && <2.4), Win32-errors (>=0.2 && <0.3) [details] |
License | BSD-3-Clause |
Copyright | Copyright 2013-2015 Michael Steele |
Author | Michael Steele |
Maintainer | mikesteele81@gmail.com |
Category | System |
Home page | http://github.com/mikesteele81/win32-dhcp-server |
Bug tracker | http://github.com/mikesteele81/win32-dhcp-server/issues |
Uploaded | by MichaelSteele at 2015-08-24T21:30:27Z |
Modules
- Data
- Data.Ip
- Data.Mac
- System
- Win32
- System.Win32.DHCP
- Win32
Downloads
- Win32-dhcp-server-0.3.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees