Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficult to get pipe handle #290

Open
funte opened this issue Jun 7, 2023 · 0 comments
Open

Difficult to get pipe handle #290

funte opened this issue Jun 7, 2023 · 0 comments

Comments

@funte
Copy link

funte commented Jun 7, 2023

The win32MessageBytePipe struct is unexported, its difficult to get the pipe handle, maybe should add this util function:

func UtilGetPipeHandle(f net.Conn) syscall.Handle {
	switch v := f.(type) {
	case *win32MessageBytePipe:
		return v.handle
	case *win32Pipe:
		return v.handle
	default:
		return 0
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant