Files
RemoteDesk/transport/hysteria2-agent/windows_agent_pipe_windows.go
T
曾志威 19a8e03a83
ci / rust (push) Canceled after 0s
ci / web (push) Canceled after 0s
ci / package-preview (push) Canceled after 0s
ci / package-installer (push) Canceled after 0s
ci / linux-agent (push) Canceled after 0s
ci / edge-service (push) Canceled after 0s
ci / coturn-pop (push) Canceled after 0s
ci / package-windows-host (push) Canceled after 0s
Document all-Rust migration and extend native media stack
2026-08-14 14:31:57 +08:00

18 lines
314 B
Go

//go:build windows
package main
import (
"context"
"net"
"time"
"github.com/Microsoft/go-winio"
)
func dialWindowsAgentPipe(name string, timeout time.Duration) (net.Conn, error) {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
return winio.DialPipeContext(ctx, name)
}