David Presotto | 918922c | 2013-07-15 18:40:55 -0400 | [diff] [blame] | 1 | // Copyright 2009 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Mikio Hara | 484cc67 | 2014-09-18 19:17:55 +0900 | [diff] [blame] | 5 | // +build nacl |
Mikio Hara | f956740 | 2014-09-11 17:56:58 +0900 | [diff] [blame] | 6 | |
David Presotto | 918922c | 2013-07-15 18:40:55 -0400 | [diff] [blame] | 7 | package net |
| 8 | |
| 9 | import ( |
David Presotto | 918922c | 2013-07-15 18:40:55 -0400 | [diff] [blame] | 10 | "syscall" |
| 11 | "time" |
| 12 | ) |
| 13 | |
Mikio Hara | 484cc67 | 2014-09-18 19:17:55 +0900 | [diff] [blame] | 14 | func setNoDelay(fd *netFD, noDelay bool) error { |
| 15 | return syscall.ENOPROTOOPT |
| 16 | } |
| 17 | |
David Presotto | 918922c | 2013-07-15 18:40:55 -0400 | [diff] [blame] | 18 | func setKeepAlivePeriod(fd *netFD, d time.Duration) error { |
Mikio Hara | f956740 | 2014-09-11 17:56:58 +0900 | [diff] [blame] | 19 | return syscall.ENOPROTOOPT |
David Presotto | 918922c | 2013-07-15 18:40:55 -0400 | [diff] [blame] | 20 | } |