Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Side by Side Diff: client/internal/logdog/butler/streamserver/namedPipe_windows.go

Issue 1429993002: LogDog: Add Butler stream server package. (Closed) Base URL: https://github.com/luci/luci-go@logdog-review-butlerproto
Patch Set: Bind POSIX test to POSIX domains. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package streamserver
6
7 import (
8 "net"
9
10 log "github.com/luci/luci-go/common/logging"
11 "golang.org/x/net/context"
12 npipe "gopkg.in/natefinch/npipe.v2"
13 )
14
15 // NewNamedPipeServer instantiates a new Windows named pipe server instance.
16 func NewNamedPipeServer(ctx context.Context, address string) StreamServer {
17 ctx = log.SetField(ctx, "address", address)
18 return createNamedPipeServer(ctx, func() (net.Listener, error) {
19 log.Debugf(ctx, "Creating Windows server socket Listener.")
20 return npipe.Listen(address)
21 })
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698