summaryrefslogtreecommitdiff
path: root/src/net/tcpsockopt_openbsd.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2014-09-18 19:17:55 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2014-09-18 19:17:55 +0900
commitf96d407095d149b2ba930e4d91ba37e19377e8e3 (patch)
tree4380732a7448ca942a17db96d331186fa5c1d02f /src/net/tcpsockopt_openbsd.go
parent84a8160421233e23fd32dd10742b32e0e23f8267 (diff)
downloadgo-f96d407095d149b2ba930e4d91ba37e19377e8e3.tar.gz
net: separate NaCl dependent placeholders from BSD's
To clarify the dependency of NaCl platform. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://codereview.appspot.com/143830044
Diffstat (limited to 'src/net/tcpsockopt_openbsd.go')
-rw-r--r--src/net/tcpsockopt_openbsd.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/tcpsockopt_openbsd.go b/src/net/tcpsockopt_openbsd.go
new file mode 100644
index 000000000..041e1786a
--- /dev/null
+++ b/src/net/tcpsockopt_openbsd.go
@@ -0,0 +1,16 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package net
+
+import (
+ "syscall"
+ "time"
+)
+
+func setKeepAlivePeriod(fd *netFD, d time.Duration) error {
+ // OpenBSD has no user-settable per-socket TCP keepalive
+ // options.
+ return syscall.ENOPROTOOPT
+}