Mirror of Go Windows named pipe library, https://github.com/natefinch/npipe

Clone this repo:
  1. 272c815 add deprecation warning by Nate Finch · 10 years ago master
  2. 333564e Make Listen exclusive for a given named pipe. by Han-Wen Nienhuys · 10 years ago
  3. 831feff Merge pull request #2 from fuzzac/master by Nate Finch · 11 years ago
  4. cd1ecdb Fix event handle leak. by unknown · 11 years ago
  5. 13e887d fix import broken in merge by Nate Finch · 11 years ago


!!! This package is now deprecated and not under active development. See the v2 branch in github for the currently supported branch. !!!

A Windows named pipe implementation written in pure Go.

Documentation at http://godoc.org/github.com/natefinch/npipe

Windows Pipe documentation at http://msdn.microsoft.com/en-us/library/windows/desktop/aa365780

Written for Go 1.1.


  • Deadlines for reading/writing to the connection are only functional in Windows Vista/Server 2008 and above, due to limitations with the Windows API.
  • The pipes support byte mode only (no support for message mode)

How to Build

go get github.com/natefinch/npipe

If you need to add or change the syscalls that have been defined in npipe_windows.go, you'll need to regenerate the z files by running:

$gosource/src/pkg/syscall/mksyscall_windows.pl npipe_windows.go > znpipe_windows_amd64.go $gosource/src/pkg/syscall/mksyscall_windows.pl -l32 npipe_windows.go > znpipe_windows_386.go