commit | 333564eb64f112337470d1e2be44a6ba31167db5 | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Fri May 02 11:51:20 2014 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Fri May 02 11:53:33 2014 |
tree | dd6b7208df27a9f0cab122b3a56f77093a11709b | |
parent | 831feff9cac9e7454a0d9879f7c8803843ce097e [diff] |
Make Listen exclusive for a given named pipe. Otherwise, multiple processes can listen to the pipe, and clients will round-robin between the different listening processes.
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.
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